mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
cee17389a2
commit
6adf9dee3c
12
outbox.py
12
outbox.py
|
@ -60,8 +60,7 @@ from webapp_post import individual_post_as_html
|
||||||
from speaker import update_speaker
|
from speaker import update_speaker
|
||||||
|
|
||||||
|
|
||||||
def _person_receive_update_outbox(recent_posts_cache: {},
|
def _person_receive_update_outbox(base_dir: str, http_prefix: str,
|
||||||
base_dir: str, http_prefix: str,
|
|
||||||
nickname: str, domain: str, port: int,
|
nickname: str, domain: str, port: int,
|
||||||
message_json: {}, debug: bool) -> None:
|
message_json: {}, debug: bool) -> None:
|
||||||
""" Receive an actor update from c2s
|
""" Receive an actor update from c2s
|
||||||
|
@ -588,14 +587,12 @@ def post_message_to_outbox(session, translate: {},
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle any emoji reaction requests')
|
print('DEBUG: handle any emoji reaction requests')
|
||||||
outbox_reaction(recent_posts_cache,
|
outbox_reaction(recent_posts_cache,
|
||||||
base_dir, http_prefix,
|
base_dir, post_to_nickname, domain,
|
||||||
post_to_nickname, domain, port,
|
|
||||||
message_json, debug)
|
message_json, debug)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle any undo emoji reaction requests')
|
print('DEBUG: handle any undo emoji reaction requests')
|
||||||
outbox_undo_reaction(recent_posts_cache,
|
outbox_undo_reaction(recent_posts_cache,
|
||||||
base_dir, http_prefix,
|
base_dir, post_to_nickname, domain,
|
||||||
post_to_nickname, domain, port,
|
|
||||||
message_json, debug)
|
message_json, debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -665,8 +662,7 @@ def post_message_to_outbox(session, translate: {},
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle actor updates from c2s')
|
print('DEBUG: handle actor updates from c2s')
|
||||||
_person_receive_update_outbox(recent_posts_cache,
|
_person_receive_update_outbox(base_dir, http_prefix,
|
||||||
base_dir, http_prefix,
|
|
||||||
post_to_nickname, domain, port,
|
post_to_nickname, domain, port,
|
||||||
message_json, debug)
|
message_json, debug)
|
||||||
|
|
||||||
|
|
|
@ -361,8 +361,7 @@ def send_undo_reaction_via_server(base_dir: str, session,
|
||||||
|
|
||||||
|
|
||||||
def outbox_reaction(recent_posts_cache: {},
|
def outbox_reaction(recent_posts_cache: {},
|
||||||
base_dir: str, http_prefix: str,
|
base_dir: str, nickname: str, domain: str,
|
||||||
nickname: str, domain: str, port: int,
|
|
||||||
message_json: {}, debug: bool) -> None:
|
message_json: {}, debug: bool) -> None:
|
||||||
""" When a reaction request is received by the outbox from c2s
|
""" 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: {},
|
def outbox_undo_reaction(recent_posts_cache: {},
|
||||||
base_dir: str, http_prefix: str,
|
base_dir: str, nickname: str, domain: str,
|
||||||
nickname: str, domain: str, port: int,
|
|
||||||
message_json: {}, debug: bool) -> None:
|
message_json: {}, debug: bool) -> None:
|
||||||
""" When an undo reaction request is received by the outbox from c2s
|
""" When an undo reaction request is received by the outbox from c2s
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue