From ce430565cc0d1cefa8674643dad019d6e0b5941f Mon Sep 17 00:00:00 2001 From: OMN Date: Mon, 4 Jan 2021 14:01:30 +0000 Subject: [PATCH] Fixes after rebase --- webapp_column_left.py | 4 ++-- webapp_column_right.py | 3 +-- webapp_frontscreen.py | 11 +++++------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/webapp_column_left.py b/webapp_column_left.py index 4f9e33d0..6af7c2b1 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -9,7 +9,7 @@ __status__ = "Production" import os from utils import getConfigParam from utils import getNicknameFromActor -from posts import isEditor +from utils import isEditor from posts import isModerator from webapp_utils import sharesTimelineJson from webapp_utils import htmlPostSeparator @@ -279,7 +279,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str, htmlStr = htmlHeaderWithExternalStyles(cssFiles) - bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain, theme) usersPath = '/users/' + nickname # Certain Epciyon pages should only be accessible via the 'User' page for News instances diff --git a/webapp_column_right.py b/webapp_column_right.py index d5bbcba5..502c51b9 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -17,7 +17,6 @@ from utils import getNicknameFromActor from utils import isEditor from posts import isModerator from webapp_utils import getRightImageFile -from webapp_utils import getImageFile from webapp_utils import htmlHeaderWithExternalStyle, htmlHeaderWithExternalStyles from webapp_utils import htmlHeaderBanner from webapp_utils import htmlFooter @@ -454,7 +453,7 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str, htmlStr = htmlHeaderWithExternalStyles(cssFiles) - bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain, theme) usersPath = '/users/' + nickname # Certain Epciyon pages should only be accessible via the 'User' page for News instances diff --git a/webapp_frontscreen.py b/webapp_frontscreen.py index 2b93861f..c81feed2 100644 --- a/webapp_frontscreen.py +++ b/webapp_frontscreen.py @@ -108,7 +108,7 @@ def htmlFrontScreen(rssIconAtTop: bool, domainFull = domain + ':' + str(port) # If this is the news account then show a different banner - bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain, theme) # NOTE: This currently more-or-less assumes being run only if 'news' instance profileHeaderStr = htmlHeaderBanner(defaultTimeline, 'frontpage', baseDir, '/users/news', @@ -121,9 +121,8 @@ def htmlFrontScreen(rssIconAtTop: bool, leftColumnStr = \ getLeftColumnContent(baseDir, 'news', domainFull, httpPrefix, translate, - iconsPath, False, - False, None, rssIconAtTop, True, - True) + False, False, None, rssIconAtTop, True, + True, theme) profileHeaderStr += ' \n' @@ -154,7 +153,7 @@ def htmlFrontScreen(rssIconAtTop: bool, # NOTE: Redundant # bannerFile, bannerFilename = \ -# getBannerFile(baseDir, nickname, domain) +# getBannerFile(baseDir, nickname, domain, theme) profileStr += \ _htmlFrontScreenPosts(recentPostsCache, maxRecentPosts, @@ -177,7 +176,7 @@ def htmlFrontScreen(rssIconAtTop: bool, httpPrefix, translate, False, False, newswire, False, False, None, False, False, - False, True, authorized, True) + False, True, authorized, True, theme) profileFooterStr = '
' + \ rightColumnStr + '
\n'