mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Tidying
							parent
							
								
									b998d45a2e
								
							
						
					
					
						commit
						3266883f84
					
				|  | @ -4511,7 +4511,8 @@ def daemon_http_get(self) -> None: | ||||||
|                         self.server.debug) |                         self.server.debug) | ||||||
| 
 | 
 | ||||||
|     # get replies to a post /users/nickname/statuses/number/replies |     # 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, |         if show_replies_to_post(self, authorized, | ||||||
|                                 calling_domain, referer_domain, |                                 calling_domain, referer_domain, | ||||||
|                                 self.path, |                                 self.path, | ||||||
|  |  | ||||||
|  | @ -53,7 +53,7 @@ def show_blog_page(self, authorized: bool, | ||||||
|             elif page_number > 10: |             elif page_number > 10: | ||||||
|                 page_number = 10 |                 page_number = 10 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("showBlogPage", |         establish_session("show_blog_page", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  |  | ||||||
|  | @ -280,7 +280,7 @@ def delete_button(self, calling_domain: str, path: str, | ||||||
|                 proxy_type = 'i2p' |                 proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|         curr_session = \ |         curr_session = \ | ||||||
|             establish_session("deleteButton", |             establish_session("delete_button", | ||||||
|                               curr_session, proxy_type, |                               curr_session, proxy_type, | ||||||
|                               self.server) |                               self.server) | ||||||
|         if not curr_session: |         if not curr_session: | ||||||
|  |  | ||||||
|  | @ -133,7 +133,7 @@ def announce_button(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("announceButton", |         establish_session("announce_button", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  | @ -352,7 +352,7 @@ def announce_button_undo(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("undoAnnounceButton", |         establish_session("announce_button_undo", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  |  | ||||||
|  | @ -129,7 +129,7 @@ def bookmark_button(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("bookmarkButton", |         establish_session("bookmark_button", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  | @ -334,7 +334,7 @@ def bookmark_button_undo(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("undo_bookmarkButton", |         establish_session("bookmark_button_undo", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  |  | ||||||
|  | @ -131,7 +131,7 @@ def like_button(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("likeButton", |         establish_session("like_button", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  | @ -388,7 +388,7 @@ def like_button_undo(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("undoLikeButton", |         establish_session("like_button_undo", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  |  | ||||||
|  | @ -152,7 +152,7 @@ def reaction_button(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("reactionButton", |         establish_session("reaction_button", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  | @ -435,7 +435,7 @@ def reaction_button_undo(self, calling_domain: str, path: str, | ||||||
|             proxy_type = 'i2p' |             proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|     curr_session = \ |     curr_session = \ | ||||||
|         establish_session("undoReactionButton", |         establish_session("reaction_button_undo", | ||||||
|                           curr_session, proxy_type, |                           curr_session, proxy_type, | ||||||
|                           self.server) |                           self.server) | ||||||
|     if not curr_session: |     if not curr_session: | ||||||
|  |  | ||||||
|  | @ -961,7 +961,7 @@ def show_replies_to_post(self, authorized: bool, | ||||||
| 
 | 
 | ||||||
|         if request_http(self.headers, debug): |         if request_http(self.headers, debug): | ||||||
|             curr_session = \ |             curr_session = \ | ||||||
|                 establish_session("showRepliesToPost", |                 establish_session("show_replies_to_post", | ||||||
|                                   curr_session, proxy_type, |                                   curr_session, proxy_type, | ||||||
|                                   self.server) |                                   self.server) | ||||||
|             if not curr_session: |             if not curr_session: | ||||||
|  | @ -1073,7 +1073,7 @@ def show_replies_to_post(self, authorized: bool, | ||||||
|     # send the replies json |     # send the replies json | ||||||
|     if request_http(self.headers, debug): |     if request_http(self.headers, debug): | ||||||
|         curr_session = \ |         curr_session = \ | ||||||
|             establish_session("showRepliesToPost2", |             establish_session("show_replies_to_post2", | ||||||
|                               curr_session, proxy_type, |                               curr_session, proxy_type, | ||||||
|                               self.server) |                               self.server) | ||||||
|         if not curr_session: |         if not curr_session: | ||||||
|  |  | ||||||
|  | @ -88,7 +88,7 @@ def show_person_profile(self, authorized: bool, | ||||||
|     add_alternate_domains(actor_json, domain, onion_domain, i2p_domain) |     add_alternate_domains(actor_json, domain, onion_domain, i2p_domain) | ||||||
|     if request_http(self.headers, debug): |     if request_http(self.headers, debug): | ||||||
|         curr_session = \ |         curr_session = \ | ||||||
|             establish_session("showPersonProfile", |             establish_session("show_person_profile", | ||||||
|                               curr_session, proxy_type, |                               curr_session, proxy_type, | ||||||
|                               self.server) |                               self.server) | ||||||
|         if not curr_session: |         if not curr_session: | ||||||
|  |  | ||||||
|  | @ -281,7 +281,7 @@ def follow_confirm2(self, calling_domain: str, cookie: str, | ||||||
|                     curr_proxy_type = 'i2p' |                     curr_proxy_type = 'i2p' | ||||||
| 
 | 
 | ||||||
|             curr_session = \ |             curr_session = \ | ||||||
|                 establish_session("follow request", |                 establish_session("follow request confirm", | ||||||
|                                   curr_session, |                                   curr_session, | ||||||
|                                   curr_proxy_type, |                                   curr_proxy_type, | ||||||
|                                   self.server) |                                   self.server) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue