merge-requests/30/head
Bob Mottram 2024-04-12 17:08:54 +01:00
parent b7c6b4c95a
commit 63a55bc5bd
2 changed files with 77 additions and 27 deletions

View File

@ -3941,7 +3941,32 @@ def daemon_http_get(self) -> None:
self.server.port, self.server.port,
getreq_start_time, getreq_start_time,
cookie, self.server.debug, cookie, self.server.debug,
curr_session): curr_session,
self.server.bold_reading,
self.server.translate,
self.server.theme_name,
self.server.access_keys,
self.server.recent_posts_cache,
self.server.max_recent_posts,
self.server.cached_webfingers,
self.server.person_cache,
self.server.project_version,
self.server.yt_replace_domain,
self.server.twitter_replacement_domain,
self.server.show_published_date_only,
self.server.peertube_instances,
self.server.allow_local_network_access,
self.server.system_language,
self.server.max_like_count,
self.server.signing_priv_key_pem,
self.server.cw_lists,
self.server.lists_enabled,
self.server.default_timeline,
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 self.server.getreq_busy = False
return return

View File

@ -653,7 +653,32 @@ def show_announcers_of_post(self, authorized: bool,
base_dir: str, http_prefix: str, base_dir: str, http_prefix: str,
domain: str, port: int, domain: str, port: int,
getreq_start_time, cookie: str, getreq_start_time, cookie: str,
debug: str, curr_session) -> bool: debug: str, curr_session,
bold_reading_nicknames: {},
translate: {},
theme_name: str,
access_keys: {},
recent_posts_cache: {},
max_recent_posts: int,
cached_webfingers: {},
person_cache: {},
project_version: str,
yt_replace_domain: str,
twitter_replacement_domain: str,
show_published_date_only: bool,
peertube_instances: [],
allow_local_network_access: bool,
system_language: str,
max_like_count: int,
signing_priv_key_pem: str,
cw_lists: {},
lists_enabled: {},
default_timeline: str,
dogwhistles: {},
min_images_for_accounts: bool,
buy_sites: [],
auto_cw_cache: {},
fitness: {}) -> bool:
"""Show the announcers of a post """Show the announcers of a post
""" """
if not authorized: if not authorized:
@ -671,37 +696,37 @@ def show_announcers_of_post(self, authorized: bool,
post_url = post_url.replace('--', '/') post_url = post_url.replace('--', '/')
bold_reading = False bold_reading = False
if self.server.bold_reading.get(nickname): if bold_reading_nicknames.get(nickname):
bold_reading = True bold_reading = True
# note that the likers function is reused, but with 'shares' # note that the likers function is reused, but with 'shares'
msg = \ msg = \
html_likers_of_post(base_dir, nickname, domain, port, html_likers_of_post(base_dir, nickname, domain, port,
post_url, self.server.translate, post_url, translate,
http_prefix, http_prefix,
self.server.theme_name, theme_name,
self.server.access_keys, access_keys,
self.server.recent_posts_cache, recent_posts_cache,
self.server.max_recent_posts, max_recent_posts,
curr_session, curr_session,
self.server.cached_webfingers, cached_webfingers,
self.server.person_cache, person_cache,
self.server.project_version, project_version,
self.server.yt_replace_domain, yt_replace_domain,
self.server.twitter_replacement_domain, twitter_replacement_domain,
self.server.show_published_date_only, show_published_date_only,
self.server.peertube_instances, peertube_instances,
self.server.allow_local_network_access, allow_local_network_access,
self.server.system_language, system_language,
self.server.max_like_count, max_like_count,
self.server.signing_priv_key_pem, signing_priv_key_pem,
self.server.cw_lists, cw_lists,
self.server.lists_enabled, lists_enabled,
'inbox', self.server.default_timeline, 'inbox', default_timeline,
bold_reading, self.server.dogwhistles, bold_reading, dogwhistles,
self.server.min_images_for_accounts, min_images_for_accounts,
self.server.buy_sites, buy_sites,
self.server.auto_cw_cache, auto_cw_cache,
'shares') 'shares')
if not msg: if not msg:
http_404(self, 70) http_404(self, 70)
@ -711,7 +736,7 @@ def show_announcers_of_post(self, authorized: bool,
set_headers(self, 'text/html', msglen, set_headers(self, 'text/html', msglen,
cookie, calling_domain, False) cookie, calling_domain, False)
write2(self, msg) write2(self, msg)
fitness_performance(getreq_start_time, self.server.fitness, fitness_performance(getreq_start_time, fitness,
'_GET', 'show_announcers_of_post', '_GET', 'show_announcers_of_post',
debug) debug)
return True return True