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:
|
if orig_filename and orig_post_url:
|
||||||
undo_likes_collection_entry(recent_posts_cache,
|
undo_likes_collection_entry(recent_posts_cache,
|
||||||
base_dir, liked_post_filename,
|
base_dir, liked_post_filename,
|
||||||
like_url, undo_actor,
|
undo_actor,
|
||||||
domain, debug,
|
domain, debug,
|
||||||
liked_post_json)
|
liked_post_json)
|
||||||
like_url = orig_post_url
|
like_url = orig_post_url
|
||||||
|
@ -10883,7 +10883,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
print('Removing likes for ' + liked_post_filename)
|
print('Removing likes for ' + liked_post_filename)
|
||||||
undo_likes_collection_entry(recent_posts_cache,
|
undo_likes_collection_entry(recent_posts_cache,
|
||||||
base_dir,
|
base_dir,
|
||||||
liked_post_filename, like_url,
|
liked_post_filename,
|
||||||
undo_actor, domain, debug, None)
|
undo_actor, domain, debug, None)
|
||||||
if debug:
|
if debug:
|
||||||
print('Regenerating html post for changed likes collection')
|
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:
|
if debug:
|
||||||
print('DEBUG: liked post found in inbox. Now undoing.')
|
print('DEBUG: liked post found in inbox. Now undoing.')
|
||||||
like_actor = get_actor_from_post(message_json)
|
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,
|
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
|
# regenerate the html
|
||||||
liked_post_json = load_json(post_filename, 0, 1)
|
liked_post_json = load_json(post_filename, 0, 1)
|
||||||
if liked_post_json:
|
if liked_post_json:
|
||||||
|
@ -2244,12 +2243,10 @@ def _receive_undo_like(recent_posts_cache: {},
|
||||||
locate_post(base_dir, handle_name,
|
locate_post(base_dir, handle_name,
|
||||||
domain, announce_like_url)
|
domain, announce_like_url)
|
||||||
if announce_liked_filename:
|
if announce_liked_filename:
|
||||||
post_liked_id = announce_like_url
|
|
||||||
post_filename = announce_liked_filename
|
post_filename = announce_liked_filename
|
||||||
undo_likes_collection_entry(recent_posts_cache,
|
undo_likes_collection_entry(recent_posts_cache,
|
||||||
base_dir,
|
base_dir,
|
||||||
post_filename,
|
post_filename,
|
||||||
post_liked_id,
|
|
||||||
like_actor, domain, debug,
|
like_actor, domain, debug,
|
||||||
None)
|
None)
|
||||||
if liked_post_json:
|
if liked_post_json:
|
||||||
|
|
3
like.py
3
like.py
|
@ -429,8 +429,7 @@ def outbox_undo_like(recent_posts_cache: {},
|
||||||
return True
|
return True
|
||||||
actor_url = get_actor_from_post(message_json)
|
actor_url = get_actor_from_post(message_json)
|
||||||
undo_likes_collection_entry(recent_posts_cache, base_dir, post_filename,
|
undo_likes_collection_entry(recent_posts_cache, base_dir, post_filename,
|
||||||
message_id, actor_url,
|
actor_url, domain, debug, None)
|
||||||
domain, debug, None)
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: post undo liked via c2s - ' + post_filename)
|
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: {},
|
def undo_likes_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: {}) -> None:
|
post_json_object: {}) -> None:
|
||||||
"""Undoes a like for a particular actor
|
"""Undoes a like for a particular actor
|
||||||
|
|
Loading…
Reference in New Issue