mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
e95f6b8261
commit
bfa2c4c63b
|
@ -68,42 +68,43 @@ def _html_front_screen_posts(recent_posts_cache: {}, max_recent_posts: int,
|
||||||
if len(outbox_feed['orderedItems']) == 0:
|
if len(outbox_feed['orderedItems']) == 0:
|
||||||
break
|
break
|
||||||
for item in outbox_feed['orderedItems']:
|
for item in outbox_feed['orderedItems']:
|
||||||
if item['type'] == 'Create':
|
if item['type'] != 'Create':
|
||||||
timezone = get_account_timezone(base_dir, nickname, domain)
|
continue
|
||||||
minimize_all_images = False
|
timezone = get_account_timezone(base_dir, nickname, domain)
|
||||||
if nickname in min_images_for_accounts:
|
minimize_all_images = False
|
||||||
minimize_all_images = True
|
if nickname in min_images_for_accounts:
|
||||||
post_str = \
|
minimize_all_images = True
|
||||||
individual_post_as_html(signing_priv_key_pem,
|
post_str = \
|
||||||
True, recent_posts_cache,
|
individual_post_as_html(signing_priv_key_pem,
|
||||||
max_recent_posts,
|
True, recent_posts_cache,
|
||||||
translate, None,
|
max_recent_posts,
|
||||||
base_dir, session,
|
translate, None,
|
||||||
cached_webfingers,
|
base_dir, session,
|
||||||
person_cache,
|
cached_webfingers,
|
||||||
nickname, domain, port, item,
|
person_cache,
|
||||||
None, True, False,
|
nickname, domain, port, item,
|
||||||
http_prefix,
|
None, True, False,
|
||||||
project_version, 'inbox',
|
http_prefix,
|
||||||
yt_replace_domain,
|
project_version, 'inbox',
|
||||||
twitter_replacement_domain,
|
yt_replace_domain,
|
||||||
show_published_date_only,
|
twitter_replacement_domain,
|
||||||
peertube_instances,
|
show_published_date_only,
|
||||||
allow_local_network_access,
|
peertube_instances,
|
||||||
theme_name, system_language,
|
allow_local_network_access,
|
||||||
max_like_count,
|
theme_name, system_language,
|
||||||
False, False, False,
|
max_like_count,
|
||||||
True, False, False,
|
False, False, False,
|
||||||
cw_lists, lists_enabled,
|
True, False, False,
|
||||||
timezone, False,
|
cw_lists, lists_enabled,
|
||||||
bold_reading, dogwhistles,
|
timezone, False,
|
||||||
minimize_all_images, None,
|
bold_reading, dogwhistles,
|
||||||
buy_sites, auto_cw_cache)
|
minimize_all_images, None,
|
||||||
if post_str:
|
buy_sites, auto_cw_cache)
|
||||||
profile_str += post_str + separator_str
|
if post_str:
|
||||||
ctr += 1
|
profile_str += post_str + separator_str
|
||||||
if ctr >= max_items:
|
ctr += 1
|
||||||
break
|
if ctr >= max_items:
|
||||||
|
break
|
||||||
curr_page += 1
|
curr_page += 1
|
||||||
return profile_str
|
return profile_str
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue