mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
30a3c5f111
commit
146bdcf3b8
|
|
@ -1080,7 +1080,8 @@ def receive_like(recent_posts_cache: {},
|
|||
not_dm = not is_dm(liked_post_json)
|
||||
timezone = get_account_timezone(base_dir, handle_name, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if handle_name in min_images_for_accounts:
|
||||
|
|
@ -1330,7 +1331,8 @@ def receive_reaction(recent_posts_cache: {},
|
|||
not_dm = not is_dm(reaction_post_json)
|
||||
timezone = get_account_timezone(base_dir, handle_name, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if handle_name in min_images_for_accounts:
|
||||
|
|
@ -1529,7 +1531,8 @@ def receive_zot_reaction(recent_posts_cache: {},
|
|||
not_dm = not is_dm(reaction_post_json)
|
||||
timezone = get_account_timezone(base_dir, handle_name, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if handle_name in min_images_for_accounts:
|
||||
|
|
@ -1671,7 +1674,8 @@ def receive_bookmark(recent_posts_cache: {},
|
|||
not_dm = not is_dm(bookmarked_post_json)
|
||||
timezone = get_account_timezone(base_dir, nickname, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if nickname in min_images_for_accounts:
|
||||
|
|
@ -2221,7 +2225,8 @@ def receive_question_vote(server, base_dir: str, nickname: str, domain: str,
|
|||
not_dm = not is_dm(question_json)
|
||||
timezone = get_account_timezone(base_dir, nickname, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(question_post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = question_post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if nickname in min_images_for_accounts:
|
||||
|
|
|
|||
|
|
@ -266,7 +266,8 @@ def receive_undo_like(recent_posts_cache: {},
|
|||
not_dm = not is_dm(liked_post_json)
|
||||
timezone = get_account_timezone(base_dir, handle_name, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if handle_name in min_images_for_accounts:
|
||||
|
|
@ -424,7 +425,8 @@ def receive_undo_reaction(recent_posts_cache: {},
|
|||
not_dm = not is_dm(reaction_post_json)
|
||||
timezone = get_account_timezone(base_dir, handle_name, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if handle_name in min_images_for_accounts:
|
||||
|
|
@ -568,7 +570,8 @@ def receive_undo_bookmark(recent_posts_cache: {},
|
|||
not_dm = not is_dm(bookmarked_post_json)
|
||||
timezone = get_account_timezone(base_dir, nickname, domain)
|
||||
mitm: bool = False
|
||||
if os.path.isfile(post_filename.replace('.json', '') + '.mitm'):
|
||||
test_filename = post_filename.replace('.json', '') + '.mitm'
|
||||
if os.path.isfile(test_filename):
|
||||
mitm = True
|
||||
minimize_all_images: bool = False
|
||||
if nickname in min_images_for_accounts:
|
||||
|
|
|
|||
3
tests.py
3
tests.py
|
|
@ -1509,8 +1509,9 @@ def test_post_message_between_servers(base_dir: str) -> None:
|
|||
data_dir(alice_dir) + '/alice@' + alice_domain + '/.last_published'
|
||||
assert not os.path.isfile(last_pub_filename)
|
||||
outbox_path = data_dir(alice_dir) + '/alice@' + alice_domain + '/outbox'
|
||||
test_filename = os.path.join(outbox_path, name)
|
||||
assert len([name for name in os.listdir(outbox_path)
|
||||
if os.path.isfile(os.path.join(outbox_path, name))]) == 0
|
||||
if os.path.isfile(test_filename)]) == 0
|
||||
low_bandwidth: bool = False
|
||||
signing_priv_key_pem = None
|
||||
translate: dict = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue