Return to default timeline

main
Bob Mottram 2021-11-11 23:20:40 +00:00
parent 1fad4becc1
commit 5cbbf864b0
2 changed files with 5 additions and 3 deletions

View File

@ -8352,7 +8352,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.maxLikeCount,
self.server.signingPrivateKeyPem,
self.server.CWlists,
self.server.listsEnabled)
self.server.listsEnabled,
self.server.defaultTimeline)
msg = msg.encode('utf-8')
msglen = len(msg)
self._set_headers('text/html', msglen,

View File

@ -2195,7 +2195,8 @@ def htmlEmojiReactionPicker(cssCache: {},
allowLocalNetworkAccess: bool,
themeName: str, systemLanguage: str,
maxLikeCount: int, signingPrivateKeyPem: str,
CWlists: {}, listsEnabled: str) -> str:
CWlists: {}, listsEnabled: str,
defaultTimeline: str) -> str:
"""Returns the emoji picker screen
"""
reactedToPostStr = \
@ -2255,7 +2256,7 @@ def htmlEmojiReactionPicker(cssCache: {},
# banner
headerStr += \
'<header>\n' + \
'<a href="/users/' + nickname + '/inbox" title="' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n'
headerStr += '<img loading="lazy" class="timeline-banner" ' + \