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,
|
||||
base_dir,
|
||||
reaction_post_filename,
|
||||
reaction_url,
|
||||
undo_actor, domain, debug,
|
||||
reaction_post_json,
|
||||
emoji_content)
|
||||
|
@ -11377,7 +11376,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
print('Removing emoji reaction for ' + reaction_post_filename)
|
||||
undo_reaction_collection_entry(recent_posts_cache,
|
||||
base_dir, reaction_post_filename,
|
||||
reaction_url,
|
||||
undo_actor, domain, debug,
|
||||
reaction_post_json, emoji_content)
|
||||
if debug:
|
||||
|
|
5
inbox.py
5
inbox.py
|
@ -2710,14 +2710,13 @@ def _receive_undo_reaction(recent_posts_cache: {},
|
|||
if debug:
|
||||
print('DEBUG: reaction post found in inbox. Now undoing.')
|
||||
reaction_actor = actor_url
|
||||
post_reaction_id = message_json['object']
|
||||
emoji_content = remove_html(message_json['object']['content'])
|
||||
if not emoji_content:
|
||||
if debug:
|
||||
print('DEBUG: unreaction has no content')
|
||||
return True
|
||||
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
||||
post_reaction_id, reaction_actor, domain,
|
||||
reaction_actor, domain,
|
||||
debug, None, emoji_content)
|
||||
# regenerate the html
|
||||
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,
|
||||
domain, announce_reaction_url)
|
||||
if announce_reaction_filename:
|
||||
post_reaction_id = announce_reaction_url
|
||||
post_filename = announce_reaction_filename
|
||||
undo_reaction_collection_entry(recent_posts_cache,
|
||||
base_dir,
|
||||
post_filename,
|
||||
post_reaction_id,
|
||||
reaction_actor,
|
||||
domain,
|
||||
debug, None,
|
||||
|
|
|
@ -454,8 +454,8 @@ def outbox_undo_reaction(recent_posts_cache: {},
|
|||
return True
|
||||
actor_url = get_actor_from_post(message_json)
|
||||
undo_reaction_collection_entry(recent_posts_cache, base_dir, post_filename,
|
||||
message_id, actor_url,
|
||||
domain, debug, None, emoji_content)
|
||||
actor_url, domain, debug, None,
|
||||
emoji_content)
|
||||
if debug:
|
||||
print('DEBUG: post undo reaction via c2s - ' + post_filename)
|
||||
|
||||
|
|
Loading…
Reference in New Issue