argument type

main
Bob Mottram 2024-04-22 23:53:34 +01:00
parent 9f5bef484a
commit d16b4a90c0
8 changed files with 24 additions and 21 deletions

View File

@ -3424,7 +3424,9 @@ def daemon_http_get(self) -> None:
self.server.auto_cw_cache,
self.server.fitness,
self.server.account_timezone,
self.server.iconsCache)
self.server.iconsCache,
self.server.bold_reading,
self.server.min_images_for_accounts)
self.server.getreq_busy = False
return

View File

@ -623,7 +623,9 @@ def like_button(self, calling_domain: str, path: str,
auto_cw_cache: {},
fitness: {},
account_timezone: {},
icons_cache: {}) -> None:
icons_cache: {},
bold_reading_nicknames: {},
min_images_for_accounts: []) -> None:
"""Press the like button
"""
page_number = 1
@ -774,11 +776,10 @@ def like_button(self, calling_domain: str, path: str,
'.mitm'):
mitm = True
bold_reading = False
if self.server.bold_reading.get(self.post_to_nickname):
if bold_reading_nicknames.get(self.post_to_nickname):
bold_reading = True
minimize_all_images = False
if self.post_to_nickname in \
self.server.min_images_for_accounts:
if self.post_to_nickname in min_images_for_accounts:
minimize_all_images = True
individual_post_as_html(signing_priv_key_pem,
False,
@ -2057,7 +2058,7 @@ def delete_button(self, calling_domain: str, path: str,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
fitness: {}) -> None:

View File

@ -76,7 +76,7 @@ def _show_post_from_file(self, post_filename: str, liked_by: str,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
fitness: {}, path: str,
@ -231,7 +231,7 @@ def show_individual_post(self, ssml_getreq: bool, authorized: bool,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
onion_domain: str,
@ -384,7 +384,7 @@ def show_new_post(self, edit_post_params: {},
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {}) -> bool:
"""Shows the new post screen
@ -553,7 +553,7 @@ def show_individual_at_post(self, ssml_getreq: bool, authorized: bool,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
onion_domain: str,
@ -704,7 +704,7 @@ def show_likers_of_post(self, authorized: bool,
lists_enabled: {},
default_timeline: str,
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
fitness: {}) -> bool:
@ -797,7 +797,7 @@ def show_announcers_of_post(self, authorized: bool,
lists_enabled: {},
default_timeline: str,
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
fitness: {}) -> bool:
@ -891,7 +891,7 @@ def show_replies_to_post(self, authorized: bool,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
fitness: {},
@ -1170,7 +1170,7 @@ def show_notify_post(self, authorized: bool,
cw_lists: {},
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
onion_domain: str,
@ -1270,7 +1270,7 @@ def show_conversation_thread(self, authorized: bool,
lists_enabled: {},
dogwhistles: {},
access_keys: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
blocked_cache: {},
block_federated: {},

View File

@ -522,7 +522,7 @@ def edit_profile2(self, calling_domain: str, path: str,
cw_lists: {},
lists_enabled: {},
system_language: str,
min_images_for_accounts: bool,
min_images_for_accounts: [],
max_recent_posts: int,
reverse_sequence: bool,
buy_sites: [],

View File

@ -42,7 +42,7 @@ def reaction_picker2(self, calling_domain: str, path: str,
cw_lists: [],
lists_enabled: {},
dogwhistles: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {}) -> None:
"""Press the emoji reaction picker icon at the bottom of the post

View File

@ -69,7 +69,7 @@ def person_options2(self, path: str,
account_timezone: {},
proxy_type: str,
bold_reading_nicknames: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
max_shares_on_profile: int,
max_recent_posts: int,
translate: {},

View File

@ -82,7 +82,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
twitter_replacement_domain: str,
signing_priv_key_pem: str,
show_published_date_only: bool,
min_images_for_accounts: bool,
min_images_for_accounts: [],
peertube_instances: [],
max_mentions: int,
max_emoji: int, max_recent_posts: int,
@ -1419,7 +1419,7 @@ def receive_new_post(self, post_type: str, path: str,
twitter_replacement_domain: str,
signing_priv_key_pem: str,
show_published_date_only: bool,
min_images_for_accounts: bool,
min_images_for_accounts: [],
peertube_instances: [],
max_mentions: int, max_emoji: int,
max_recent_posts: int,

View File

@ -67,7 +67,7 @@ def receive_search_query(self, calling_domain: str, cookie: str,
dogwhistles: {},
map_format: str,
access_keys: {},
min_images_for_accounts: bool,
min_images_for_accounts: [],
buy_sites: [],
auto_cw_cache: {},
instance_only_skills_search: bool,