merge-requests/30/head
Bob Mottram 2024-04-23 15:43:43 +01:00
parent 180a281769
commit 302b030066
2 changed files with 10 additions and 6 deletions

View File

@ -3785,7 +3785,8 @@ def daemon_http_get(self) -> None:
self.server.fitness, self.server.fitness,
self.server.allow_deletion, self.server.allow_deletion,
self.server.session_onion, self.server.session_onion,
self.server.session_i2p) self.server.session_i2p,
self.server.default_timeline)
self.server.getreq_busy = False self.server.getreq_busy = False
return return
@ -3830,7 +3831,8 @@ def daemon_http_get(self) -> None:
self.server.fitness, self.server.fitness,
self.server.account_timezone, self.server.account_timezone,
self.server.bold_reading, self.server.bold_reading,
self.server.min_images_for_accounts) self.server.min_images_for_accounts,
self.server.default_timeline)
self.server.getreq_busy = False self.server.getreq_busy = False
return return

View File

@ -2086,7 +2086,8 @@ def delete_button(self, calling_domain: str, path: str,
fitness: {}, fitness: {},
allow_deletion: bool, allow_deletion: bool,
session_onion, session_onion,
session_i2p) -> None: session_i2p,
default_timeline: str) -> None:
"""Delete button is pressed on a post """Delete button is pressed on a post
""" """
if not cookie: if not cookie:
@ -2107,7 +2108,7 @@ def delete_button(self, calling_domain: str, path: str,
delete_url = path.split('?delete=')[1] delete_url = path.split('?delete=')[1]
if '?' in delete_url: if '?' in delete_url:
delete_url = delete_url.split('?')[0] delete_url = delete_url.split('?')[0]
timeline_str = self.server.default_timeline timeline_str = default_timeline
if '?tl=' in path: if '?tl=' in path:
timeline_str = path.split('?tl=')[1] timeline_str = path.split('?tl=')[1]
if '?' in timeline_str: if '?' in timeline_str:
@ -2229,7 +2230,8 @@ def mute_button(self, calling_domain: str, path: str,
fitness: {}, fitness: {},
account_timezone: {}, account_timezone: {},
bold_reading_nicknames: {}, bold_reading_nicknames: {},
min_images_for_accounts: []) -> None: min_images_for_accounts: [],
default_timeline: str) -> None:
"""Mute button is pressed """Mute button is pressed
""" """
mute_url = path.split('?mute=')[1] mute_url = path.split('?mute=')[1]
@ -2248,7 +2250,7 @@ def mute_button(self, calling_domain: str, path: str,
if '?' in timeline_bookmark: if '?' in timeline_bookmark:
timeline_bookmark = timeline_bookmark.split('?')[0] timeline_bookmark = timeline_bookmark.split('?')[0]
timeline_bookmark = '#' + timeline_bookmark timeline_bookmark = '#' + timeline_bookmark
timeline_str = self.server.default_timeline timeline_str = default_timeline
if '?tl=' in path: if '?tl=' in path:
timeline_str = path.split('?tl=')[1] timeline_str = path.split('?tl=')[1]
if '?' in timeline_str: if '?' in timeline_str: