diff --git a/daemon.py b/daemon.py index 284420a8d..f6cad15a3 100644 --- a/daemon.py +++ b/daemon.py @@ -8546,7 +8546,8 @@ class PubServer(BaseHTTPRequestHandler): baseDir, path, domain, port, - httpPrefix).encode('utf-8') + httpPrefix, + self.server.defaultTimeline).encode('utf-8') if msg: self._set_headers('text/html', len(msg), cookie, callingDomain) diff --git a/webinterface.py b/webinterface.py index 999f60701..37efc9bb5 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1226,12 +1226,12 @@ def scheduledPostsExist(baseDir: str, nickname: str, domain: str) -> bool: def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, - domain: str, port: int, httpPrefix: str) -> str: + domain: str, port: int, httpPrefix: str, + defaultTimeline: str) -> str: """Shows the edit links screen """ if '/users/' not in path: return '' - pathOriginal = path path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/shares', '') @@ -1253,7 +1253,19 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, editCSS = \ editCSS.replace('https://', httpPrefix + '://') + # filename of the banner shown at the top + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + editLinksForm = htmlHeader(cssFilename, editCSS) + + # top banner + editLinksForm += \ + '\n' + editLinksForm += '\n' + editLinksForm += \ '