mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
a06bb9217c
commit
818f54f472
7
inbox.py
7
inbox.py
|
@ -3821,11 +3821,9 @@ def _is_valid_dm(base_dir: str, nickname: str, domain: str, port: int,
|
||||||
|
|
||||||
# Not sending to yourself
|
# Not sending to yourself
|
||||||
if not sending_to_self:
|
if not sending_to_self:
|
||||||
obj_has_dict = has_object_dict(post_json_object)
|
|
||||||
# is this a vote on a question?
|
# is this a vote on a question?
|
||||||
if obj_has_dict:
|
if is_vote(base_dir, nickname, domain,
|
||||||
if post_json_object['object'].get("name") and \
|
post_json_object):
|
||||||
post_json_object['object'].get("inReplyTo"):
|
|
||||||
# make the content the same as the vote answer
|
# make the content the same as the vote answer
|
||||||
post_json_object['object']['content'] = \
|
post_json_object['object']['content'] = \
|
||||||
post_json_object['object']['name']
|
post_json_object['object']['name']
|
||||||
|
@ -3848,6 +3846,7 @@ def _is_valid_dm(base_dir: str, nickname: str, domain: str, port: int,
|
||||||
# send back a bounce DM
|
# send back a bounce DM
|
||||||
if post_json_object.get('id') and \
|
if post_json_object.get('id') and \
|
||||||
post_json_object.get('object'):
|
post_json_object.get('object'):
|
||||||
|
obj_has_dict = has_object_dict(post_json_object)
|
||||||
# don't send bounces back to
|
# don't send bounces back to
|
||||||
# replies to bounce messages
|
# replies to bounce messages
|
||||||
obj = post_json_object['object']
|
obj = post_json_object['object']
|
||||||
|
|
Loading…
Reference in New Issue