mirror of https://gitlab.com/bashrc2/epicyon
Remove unused argument
parent
846945832f
commit
edd763a93f
|
@ -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')
|
||||
|
|
5
inbox.py
5
inbox.py
|
@ -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:
|
||||
|
|
3
like.py
3
like.py
|
@ -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)
|
||||
|
||||
|
|
1
utils.py
1
utils.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue