mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
f5cf8ba2e7
commit
722d243154
|
@ -4975,7 +4975,45 @@ def daemon_http_get(self) -> None:
|
|||
getreq_start_time,
|
||||
cookie, self.server.debug,
|
||||
curr_session, ua_str,
|
||||
MAX_POSTS_IN_FEED):
|
||||
MAX_POSTS_IN_FEED,
|
||||
self.server.access_keys,
|
||||
self.server.key_shortcuts,
|
||||
self.server.full_width_tl_button_header,
|
||||
self.server.account_timezone,
|
||||
self.server.bold_reading,
|
||||
self.server.reverse_sequence_nicknames,
|
||||
self.server.default_timeline,
|
||||
self.server.recent_posts_cache,
|
||||
self.server.max_recent_posts,
|
||||
self.server.translate,
|
||||
self.server.cached_webfingers,
|
||||
self.server.person_cache,
|
||||
self.server.allow_deletion,
|
||||
self.server.project_version,
|
||||
self.server.yt_replace_domain,
|
||||
self.server.twitter_replacement_domain,
|
||||
self.server.show_published_date_only,
|
||||
self.server.newswire,
|
||||
self.server.positive_voting,
|
||||
self.server.show_publish_as_icon,
|
||||
self.server.icons_as_buttons,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
self.server.theme_name,
|
||||
self.server.peertube_instances,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.text_mode_banner,
|
||||
self.server.system_language,
|
||||
self.server.max_like_count,
|
||||
self.server.shared_items_federated_domains,
|
||||
self.server.signing_priv_key_pem,
|
||||
self.server.cw_lists,
|
||||
self.server.lists_enabled,
|
||||
self.server.dogwhistles,
|
||||
self.server.min_images_for_accounts,
|
||||
self.server.buy_sites,
|
||||
self.server.auto_cw_cache,
|
||||
self.server.fitness):
|
||||
self.server.getreq_busy = False
|
||||
return
|
||||
|
||||
|
|
|
@ -1011,7 +1011,45 @@ def show_wanted_timeline(self, authorized: bool,
|
|||
getreq_start_time,
|
||||
cookie: str, debug: str,
|
||||
curr_session, ua_str: str,
|
||||
max_posts_in_feed: int) -> bool:
|
||||
max_posts_in_feed: int,
|
||||
access_keys: {},
|
||||
key_shortcuts: {},
|
||||
full_width_tl_button_header: bool,
|
||||
account_timezone: {},
|
||||
bold_reading_nicknames: {},
|
||||
reverse_sequence_nicknames: [],
|
||||
default_timeline: str,
|
||||
recent_posts_cache: {},
|
||||
max_recent_posts: int,
|
||||
translate: {},
|
||||
cached_webfingers: {},
|
||||
person_cache: {},
|
||||
allow_deletion: bool,
|
||||
project_version: str,
|
||||
yt_replace_domain: str,
|
||||
twitter_replacement_domain: str,
|
||||
show_published_date_only: bool,
|
||||
newswire: {},
|
||||
positive_voting: bool,
|
||||
show_publish_as_icon: bool,
|
||||
icons_as_buttons: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
theme_name: str,
|
||||
peertube_instances: [],
|
||||
allow_local_network_access: bool,
|
||||
text_mode_banner: str,
|
||||
system_language: str,
|
||||
max_like_count: int,
|
||||
shared_items_federated_domains: [],
|
||||
signing_priv_key_pem: str,
|
||||
cw_lists: {},
|
||||
lists_enabled: {},
|
||||
dogwhistles: {},
|
||||
min_images_for_accounts: [],
|
||||
buy_sites: [],
|
||||
auto_cw_cache: {},
|
||||
fitness: {}) -> bool:
|
||||
"""Shows the wanted timeline
|
||||
"""
|
||||
if '/users/' in path:
|
||||
|
@ -1032,72 +1070,66 @@ def show_wanted_timeline(self, authorized: bool,
|
|||
else:
|
||||
page_number = 1
|
||||
|
||||
access_keys = self.server.access_keys
|
||||
if self.server.key_shortcuts.get(nickname):
|
||||
access_keys = \
|
||||
self.server.key_shortcuts[nickname]
|
||||
full_width_tl_button_header = \
|
||||
self.server.full_width_tl_button_header
|
||||
if key_shortcuts.get(nickname):
|
||||
access_keys = key_shortcuts[nickname]
|
||||
timezone = None
|
||||
if self.server.account_timezone.get(nickname):
|
||||
timezone = \
|
||||
self.server.account_timezone.get(nickname)
|
||||
if account_timezone.get(nickname):
|
||||
timezone = account_timezone.get(nickname)
|
||||
bold_reading = False
|
||||
if self.server.bold_reading.get(nickname):
|
||||
if bold_reading_nicknames.get(nickname):
|
||||
bold_reading = True
|
||||
reverse_sequence = False
|
||||
if nickname in self.server.reverse_sequence:
|
||||
if nickname in reverse_sequence_nicknames:
|
||||
reverse_sequence = True
|
||||
msg = \
|
||||
html_wanted(self.server.default_timeline,
|
||||
self.server.recent_posts_cache,
|
||||
self.server.max_recent_posts,
|
||||
self.server.translate,
|
||||
html_wanted(default_timeline,
|
||||
recent_posts_cache,
|
||||
max_recent_posts,
|
||||
translate,
|
||||
page_number, max_posts_in_feed,
|
||||
curr_session,
|
||||
base_dir,
|
||||
self.server.cached_webfingers,
|
||||
self.server.person_cache,
|
||||
cached_webfingers,
|
||||
person_cache,
|
||||
nickname,
|
||||
domain,
|
||||
port,
|
||||
self.server.allow_deletion,
|
||||
allow_deletion,
|
||||
http_prefix,
|
||||
self.server.project_version,
|
||||
self.server.yt_replace_domain,
|
||||
self.server.twitter_replacement_domain,
|
||||
self.server.show_published_date_only,
|
||||
self.server.newswire,
|
||||
self.server.positive_voting,
|
||||
self.server.show_publish_as_icon,
|
||||
project_version,
|
||||
yt_replace_domain,
|
||||
twitter_replacement_domain,
|
||||
show_published_date_only,
|
||||
newswire,
|
||||
positive_voting,
|
||||
show_publish_as_icon,
|
||||
full_width_tl_button_header,
|
||||
self.server.icons_as_buttons,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, self.server.theme_name,
|
||||
self.server.peertube_instances,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.text_mode_banner,
|
||||
icons_as_buttons,
|
||||
rss_icon_at_top,
|
||||
publish_button_at_top,
|
||||
authorized, theme_name,
|
||||
peertube_instances,
|
||||
allow_local_network_access,
|
||||
text_mode_banner,
|
||||
access_keys,
|
||||
self.server.system_language,
|
||||
self.server.max_like_count,
|
||||
self.server.shared_items_federated_domains,
|
||||
self.server.signing_priv_key_pem,
|
||||
self.server.cw_lists,
|
||||
self.server.lists_enabled,
|
||||
system_language,
|
||||
max_like_count,
|
||||
shared_items_federated_domains,
|
||||
signing_priv_key_pem,
|
||||
cw_lists,
|
||||
lists_enabled,
|
||||
timezone, bold_reading,
|
||||
self.server.dogwhistles, ua_str,
|
||||
self.server.min_images_for_accounts,
|
||||
dogwhistles, ua_str,
|
||||
min_images_for_accounts,
|
||||
reverse_sequence,
|
||||
self.server.buy_sites,
|
||||
self.server.auto_cw_cache)
|
||||
buy_sites,
|
||||
auto_cw_cache)
|
||||
msg = msg.encode('utf-8')
|
||||
msglen = len(msg)
|
||||
set_headers(self, 'text/html', msglen,
|
||||
cookie, calling_domain, False)
|
||||
write2(self, msg)
|
||||
fitness_performance(getreq_start_time,
|
||||
self.server.fitness,
|
||||
fitness_performance(getreq_start_time, fitness,
|
||||
'_GET', '_show_wanted_timeline',
|
||||
debug)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue