merge-requests/30/head
Bob Mottram 2024-11-16 10:15:52 +00:00
parent b998d45a2e
commit 3266883f84
10 changed files with 16 additions and 15 deletions

View File

@ -4511,7 +4511,8 @@ def daemon_http_get(self) -> None:
self.server.debug)
# get replies to a post /users/nickname/statuses/number/replies
if self.path.endswith('/replies') or '/replies?page=' in self.path:
if self.path.endswith('/replies') or \
('/replies?' in self.path and 'page=' in self.path):
if show_replies_to_post(self, authorized,
calling_domain, referer_domain,
self.path,

View File

@ -53,7 +53,7 @@ def show_blog_page(self, authorized: bool,
elif page_number > 10:
page_number = 10
curr_session = \
establish_session("showBlogPage",
establish_session("show_blog_page",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -280,7 +280,7 @@ def delete_button(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("deleteButton",
establish_session("delete_button",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -133,7 +133,7 @@ def announce_button(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("announceButton",
establish_session("announce_button",
curr_session, proxy_type,
self.server)
if not curr_session:
@ -352,7 +352,7 @@ def announce_button_undo(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("undoAnnounceButton",
establish_session("announce_button_undo",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -129,7 +129,7 @@ def bookmark_button(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("bookmarkButton",
establish_session("bookmark_button",
curr_session, proxy_type,
self.server)
if not curr_session:
@ -334,7 +334,7 @@ def bookmark_button_undo(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("undo_bookmarkButton",
establish_session("bookmark_button_undo",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -131,7 +131,7 @@ def like_button(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("likeButton",
establish_session("like_button",
curr_session, proxy_type,
self.server)
if not curr_session:
@ -388,7 +388,7 @@ def like_button_undo(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("undoLikeButton",
establish_session("like_button_undo",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -152,7 +152,7 @@ def reaction_button(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("reactionButton",
establish_session("reaction_button",
curr_session, proxy_type,
self.server)
if not curr_session:
@ -435,7 +435,7 @@ def reaction_button_undo(self, calling_domain: str, path: str,
proxy_type = 'i2p'
curr_session = \
establish_session("undoReactionButton",
establish_session("reaction_button_undo",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -961,7 +961,7 @@ def show_replies_to_post(self, authorized: bool,
if request_http(self.headers, debug):
curr_session = \
establish_session("showRepliesToPost",
establish_session("show_replies_to_post",
curr_session, proxy_type,
self.server)
if not curr_session:
@ -1073,7 +1073,7 @@ def show_replies_to_post(self, authorized: bool,
# send the replies json
if request_http(self.headers, debug):
curr_session = \
establish_session("showRepliesToPost2",
establish_session("show_replies_to_post2",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -88,7 +88,7 @@ def show_person_profile(self, authorized: bool,
add_alternate_domains(actor_json, domain, onion_domain, i2p_domain)
if request_http(self.headers, debug):
curr_session = \
establish_session("showPersonProfile",
establish_session("show_person_profile",
curr_session, proxy_type,
self.server)
if not curr_session:

View File

@ -281,7 +281,7 @@ def follow_confirm2(self, calling_domain: str, cookie: str,
curr_proxy_type = 'i2p'
curr_session = \
establish_session("follow request",
establish_session("follow request confirm",
curr_session,
curr_proxy_type,
self.server)