From 302b030066901c8d25127632676760d757f6f30d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Apr 2024 15:43:43 +0100 Subject: [PATCH] Tidying --- daemon_get.py | 6 ++++-- daemon_get_buttons.py | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/daemon_get.py b/daemon_get.py index 5315b3edc..554880dce 100644 --- a/daemon_get.py +++ b/daemon_get.py @@ -3785,7 +3785,8 @@ def daemon_http_get(self) -> None: self.server.fitness, self.server.allow_deletion, self.server.session_onion, - self.server.session_i2p) + self.server.session_i2p, + self.server.default_timeline) self.server.getreq_busy = False return @@ -3830,7 +3831,8 @@ def daemon_http_get(self) -> None: self.server.fitness, self.server.account_timezone, 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 return diff --git a/daemon_get_buttons.py b/daemon_get_buttons.py index 6c040fd19..7e54c7efe 100644 --- a/daemon_get_buttons.py +++ b/daemon_get_buttons.py @@ -2086,7 +2086,8 @@ def delete_button(self, calling_domain: str, path: str, fitness: {}, allow_deletion: bool, session_onion, - session_i2p) -> None: + session_i2p, + default_timeline: str) -> None: """Delete button is pressed on a post """ if not cookie: @@ -2107,7 +2108,7 @@ def delete_button(self, calling_domain: str, path: str, delete_url = path.split('?delete=')[1] if '?' in delete_url: delete_url = delete_url.split('?')[0] - timeline_str = self.server.default_timeline + timeline_str = default_timeline if '?tl=' in path: timeline_str = path.split('?tl=')[1] if '?' in timeline_str: @@ -2229,7 +2230,8 @@ def mute_button(self, calling_domain: str, path: str, fitness: {}, account_timezone: {}, bold_reading_nicknames: {}, - min_images_for_accounts: []) -> None: + min_images_for_accounts: [], + default_timeline: str) -> None: """Mute button is pressed """ mute_url = path.split('?mute=')[1] @@ -2248,7 +2250,7 @@ def mute_button(self, calling_domain: str, path: str, if '?' in timeline_bookmark: timeline_bookmark = timeline_bookmark.split('?')[0] timeline_bookmark = '#' + timeline_bookmark - timeline_str = self.server.default_timeline + timeline_str = default_timeline if '?tl=' in path: timeline_str = path.split('?tl=')[1] if '?' in timeline_str: