mirror of https://gitlab.com/bashrc2/epicyon
Remove unused argument
parent
edd763a93f
commit
a4a5f0412c
|
@ -11367,7 +11367,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
undo_reaction_collection_entry(recent_posts_cache,
|
undo_reaction_collection_entry(recent_posts_cache,
|
||||||
base_dir,
|
base_dir,
|
||||||
reaction_post_filename,
|
reaction_post_filename,
|
||||||
reaction_url,
|
|
||||||
undo_actor, domain, debug,
|
undo_actor, domain, debug,
|
||||||
reaction_post_json,
|
reaction_post_json,
|
||||||
emoji_content)
|
emoji_content)
|
||||||
|
@ -11377,7 +11376,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
print('Removing emoji reaction for ' + reaction_post_filename)
|
print('Removing emoji reaction for ' + reaction_post_filename)
|
||||||
undo_reaction_collection_entry(recent_posts_cache,
|
undo_reaction_collection_entry(recent_posts_cache,
|
||||||
base_dir, reaction_post_filename,
|
base_dir, reaction_post_filename,
|
||||||
reaction_url,
|
|
||||||
undo_actor, domain, debug,
|
undo_actor, domain, debug,
|
||||||
reaction_post_json, emoji_content)
|
reaction_post_json, emoji_content)
|
||||||
if debug:
|
if debug:
|
||||||
|
|
5
inbox.py
5
inbox.py
|
@ -2710,14 +2710,13 @@ def _receive_undo_reaction(recent_posts_cache: {},
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: reaction post found in inbox. Now undoing.')
|
print('DEBUG: reaction post found in inbox. Now undoing.')
|
||||||
reaction_actor = actor_url
|
reaction_actor = actor_url
|
||||||
post_reaction_id = message_json['object']
|
|
||||||
emoji_content = remove_html(message_json['object']['content'])
|
emoji_content = remove_html(message_json['object']['content'])
|
||||||
if not emoji_content:
|
if not emoji_content:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: unreaction has no content')
|
print('DEBUG: unreaction has no content')
|
||||||
return True
|
return True
|
||||||
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
||||||
post_reaction_id, reaction_actor, domain,
|
reaction_actor, domain,
|
||||||
debug, None, emoji_content)
|
debug, None, emoji_content)
|
||||||
# regenerate the html
|
# regenerate the html
|
||||||
reaction_post_json = load_json(post_filename, 0, 1)
|
reaction_post_json = load_json(post_filename, 0, 1)
|
||||||
|
@ -2731,12 +2730,10 @@ def _receive_undo_reaction(recent_posts_cache: {},
|
||||||
locate_post(base_dir, handle_name,
|
locate_post(base_dir, handle_name,
|
||||||
domain, announce_reaction_url)
|
domain, announce_reaction_url)
|
||||||
if announce_reaction_filename:
|
if announce_reaction_filename:
|
||||||
post_reaction_id = announce_reaction_url
|
|
||||||
post_filename = announce_reaction_filename
|
post_filename = announce_reaction_filename
|
||||||
undo_reaction_collection_entry(recent_posts_cache,
|
undo_reaction_collection_entry(recent_posts_cache,
|
||||||
base_dir,
|
base_dir,
|
||||||
post_filename,
|
post_filename,
|
||||||
post_reaction_id,
|
|
||||||
reaction_actor,
|
reaction_actor,
|
||||||
domain,
|
domain,
|
||||||
debug, None,
|
debug, None,
|
||||||
|
|
|
@ -454,8 +454,8 @@ def outbox_undo_reaction(recent_posts_cache: {},
|
||||||
return True
|
return True
|
||||||
actor_url = get_actor_from_post(message_json)
|
actor_url = get_actor_from_post(message_json)
|
||||||
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
||||||
message_id, actor_url,
|
actor_url, domain, debug, None,
|
||||||
domain, debug, None, emoji_content)
|
emoji_content)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: post undo reaction via c2s - ' + post_filename)
|
print('DEBUG: post undo reaction via c2s - ' + post_filename)
|
||||||
|
|
||||||
|
|
1
utils.py
1
utils.py
|
@ -3238,7 +3238,6 @@ def undo_likes_collection_entry(recent_posts_cache: {},
|
||||||
|
|
||||||
def undo_reaction_collection_entry(recent_posts_cache: {},
|
def undo_reaction_collection_entry(recent_posts_cache: {},
|
||||||
base_dir: str, post_filename: str,
|
base_dir: str, post_filename: str,
|
||||||
object_url: str,
|
|
||||||
actor: str, domain: str, debug: bool,
|
actor: str, domain: str, debug: bool,
|
||||||
post_json_object: {},
|
post_json_object: {},
|
||||||
emoji_content: str) -> None:
|
emoji_content: str) -> None:
|
||||||
|
|
Loading…
Reference in New Issue