Remove unused argument

main
Bob Mottram 2024-02-15 12:31:48 +00:00
parent 846945832f
commit edd763a93f
4 changed files with 4 additions and 9 deletions

View File

@ -10874,7 +10874,7 @@ class PubServer(BaseHTTPRequestHandler):
if orig_filename and orig_post_url:
undo_likes_collection_entry(recent_posts_cache,
base_dir, liked_post_filename,
like_url, undo_actor,
undo_actor,
domain, debug,
liked_post_json)
like_url = orig_post_url
@ -10883,7 +10883,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Removing likes for ' + liked_post_filename)
undo_likes_collection_entry(recent_posts_cache,
base_dir,
liked_post_filename, like_url,
liked_post_filename,
undo_actor, domain, debug, None)
if debug:
print('Regenerating html post for changed likes collection')

View File

@ -2229,9 +2229,8 @@ def _receive_undo_like(recent_posts_cache: {},
if debug:
print('DEBUG: liked post found in inbox. Now undoing.')
like_actor = get_actor_from_post(message_json)
post_liked_id = message_json['object']
undo_likes_collection_entry(recent_posts_cache, base_dir, post_filename,
post_liked_id, like_actor, domain, debug, None)
like_actor, domain, debug, None)
# regenerate the html
liked_post_json = load_json(post_filename, 0, 1)
if liked_post_json:
@ -2244,12 +2243,10 @@ def _receive_undo_like(recent_posts_cache: {},
locate_post(base_dir, handle_name,
domain, announce_like_url)
if announce_liked_filename:
post_liked_id = announce_like_url
post_filename = announce_liked_filename
undo_likes_collection_entry(recent_posts_cache,
base_dir,
post_filename,
post_liked_id,
like_actor, domain, debug,
None)
if liked_post_json:

View File

@ -429,8 +429,7 @@ def outbox_undo_like(recent_posts_cache: {},
return True
actor_url = get_actor_from_post(message_json)
undo_likes_collection_entry(recent_posts_cache, base_dir, post_filename,
message_id, actor_url,
domain, debug, None)
actor_url, domain, debug, None)
if debug:
print('DEBUG: post undo liked via c2s - ' + post_filename)

View File

@ -3172,7 +3172,6 @@ def get_file_case_insensitive(path: str) -> str:
def undo_likes_collection_entry(recent_posts_cache: {},
base_dir: str, post_filename: str,
object_url: str,
actor: str, domain: str, debug: bool,
post_json_object: {}) -> None:
"""Undoes a like for a particular actor