main
Bob Mottram 2022-06-12 22:31:53 +01:00
parent cee17389a2
commit 6adf9dee3c
2 changed files with 6 additions and 12 deletions

View File

@ -60,8 +60,7 @@ from webapp_post import individual_post_as_html
from speaker import update_speaker
def _person_receive_update_outbox(recent_posts_cache: {},
base_dir: str, http_prefix: str,
def _person_receive_update_outbox(base_dir: str, http_prefix: str,
nickname: str, domain: str, port: int,
message_json: {}, debug: bool) -> None:
""" Receive an actor update from c2s
@ -588,14 +587,12 @@ def post_message_to_outbox(session, translate: {},
if debug:
print('DEBUG: handle any emoji reaction requests')
outbox_reaction(recent_posts_cache,
base_dir, http_prefix,
post_to_nickname, domain, port,
base_dir, post_to_nickname, domain,
message_json, debug)
if debug:
print('DEBUG: handle any undo emoji reaction requests')
outbox_undo_reaction(recent_posts_cache,
base_dir, http_prefix,
post_to_nickname, domain, port,
base_dir, post_to_nickname, domain,
message_json, debug)
if debug:
@ -665,8 +662,7 @@ def post_message_to_outbox(session, translate: {},
if debug:
print('DEBUG: handle actor updates from c2s')
_person_receive_update_outbox(recent_posts_cache,
base_dir, http_prefix,
_person_receive_update_outbox(base_dir, http_prefix,
post_to_nickname, domain, port,
message_json, debug)

View File

@ -361,8 +361,7 @@ def send_undo_reaction_via_server(base_dir: str, session,
def outbox_reaction(recent_posts_cache: {},
base_dir: str, http_prefix: str,
nickname: str, domain: str, port: int,
base_dir: str, nickname: str, domain: str,
message_json: {}, debug: bool) -> None:
""" When a reaction request is received by the outbox from c2s
"""
@ -405,8 +404,7 @@ def outbox_reaction(recent_posts_cache: {},
def outbox_undo_reaction(recent_posts_cache: {},
base_dir: str, http_prefix: str,
nickname: str, domain: str, port: int,
base_dir: str, nickname: str, domain: str,
message_json: {}, debug: bool) -> None:
""" When an undo reaction request is received by the outbox from c2s
"""