diff --git a/webapp_create_post.py b/webapp_create_post.py index d1614081..da0be76a 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -8,13 +8,16 @@ __status__ = "Production" import os from utils import isPublicPostFromUrl +from utils import getConfigParam from utils import getNicknameFromActor from utils import getDomainFromActor from utils import getImageFormats from utils import getMediaFormats from webapp_utils import getBannerFile -from webapp_utils import htmlHeaderWithExternalStyle +from webapp_utils import htmlHeaderWithExternalStyles from webapp_utils import htmlFooter +from webapp_headerbuttons import headerButtonsTimeline, headerNewsTabs +from posts import isModerator def _htmlFollowingDataList(baseDir: str, nickname: str, @@ -250,9 +253,21 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, newPostText = \ '
' + file.read() + '
\n' - cssFilename = baseDir + '/epicyon-profile.css' + cssFiles = [] + + cssFiles.append(baseDir + '/epicyon-profile.css') if os.path.isfile(baseDir + '/epicyon.css'): - cssFilename = baseDir + '/epicyon.css' + cssFiles[0] = baseDir + '/epicyon.css' + + # TODO: Clean up and remove this override + cssFiles[0] = 'base.css' + + # Get theme-specific css if exists - must be named '