Remove unused argument

main
Bob Mottram 2024-02-15 12:41:09 +00:00
parent edd763a93f
commit a4a5f0412c
4 changed files with 3 additions and 9 deletions

View File

@ -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:

View File

@ -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,

View File

@ -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)

View File

@ -3238,7 +3238,6 @@ def undo_likes_collection_entry(recent_posts_cache: {},
def undo_reaction_collection_entry(recent_posts_cache: {},
base_dir: str, post_filename: str,
object_url: str,
actor: str, domain: str, debug: bool,
post_json_object: {},
emoji_content: str) -> None: