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 += \ '
\n' @@ -1263,12 +1275,14 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, '

' + translate['Edit Links'] + '

' editLinksForm += \ '
\n' + # editLinksForm += \ + # ' \n' editLinksForm += \ - ' \n' - editLinksForm += \ - ' \n' + '
\n' + \ + ' \n' + \ + '
\n' editLinksForm += \ '
\n' @@ -1301,7 +1315,6 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, """ if '/users/' not in path: return '' - pathOriginal = path path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/shares', '') @@ -1325,7 +1338,7 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, # filename of the banner shown at the top bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) - + editNewswireForm = htmlHeader(cssFilename, editCSS) # top banner @@ -1345,12 +1358,14 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str, '

' + translate['Edit newswire'] + '

' editNewswireForm += \ '
\n' + # editNewswireForm += \ + # ' \n' editNewswireForm += \ - ' \n' - editNewswireForm += \ + '
\n' + \ ' \n' + translate['Submit'] + '">\n' + \ + '
\n' editNewswireForm += \ '
\n' @@ -1813,8 +1828,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, # top banner editProfileForm += \ '\n' + translate['Switch to timeline view'] + '" alt="' + \ + translate['Switch to timeline view'] + '">\n' editProfileForm += '\n'