From 33816994d659bbd594973fbe5b741bebb29e1219 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Wed, 6 Nov 2024 08:08:08 -0500 Subject: [PATCH] Fix login crash Fixes #81 --- components/config/SigninScene.xml | 2 +- source/api/Image.bs | 5 +++-- source/static/whatsNew/1.0.10.json | 8 ++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/components/config/SigninScene.xml b/components/config/SigninScene.xml index 084fcf7e8..5af98dbf4 100644 --- a/components/config/SigninScene.xml +++ b/components/config/SigninScene.xml @@ -48,7 +48,7 @@ - + \ No newline at end of file diff --git a/source/api/Image.bs b/source/api/Image.bs index f74ed3f06..5258cb2dd 100644 --- a/source/api/Image.bs +++ b/source/api/Image.bs @@ -56,6 +56,8 @@ function ImageURL(id, version = "Primary", params = {}) end function function UserImageURL(id, params = {}) + if not isValid(id) then return "" + ' set defaults if params.maxHeight = invalid params.append({ "maxHeight": "300" }) @@ -67,6 +69,5 @@ function UserImageURL(id, params = {}) params.append({ "quality": "90" }) end if - url = Substitute("Users/{0}/Images/Primary", id) - return buildURL(url, params) + return buildURL(`Users/${id}/Images/Primary`, params) end function diff --git a/source/static/whatsNew/1.0.10.json b/source/static/whatsNew/1.0.10.json index 1e051303f..fafcf4914 100644 --- a/source/static/whatsNew/1.0.10.json +++ b/source/static/whatsNew/1.0.10.json @@ -10,5 +10,13 @@ { "description": "Don't use web setting for Live TV view", "author": "1hitsong" + }, + { + "description": "Begin reworking LiveTV design & code", + "author": "1hitsong" + }, + { + "description": "Fix login crash", + "author": "1hitsong" } ] \ No newline at end of file