mirror of https://gitlab.com/bashrc2/epicyon
Allow quote toots going to the shared inbox
parent
5b593194b2
commit
a7a1f66c8c
26
inbox.py
26
inbox.py
|
|
@ -485,18 +485,20 @@ def save_post_to_inbox_queue(base_dir: str, http_prefix: str,
|
||||||
get_base_content_from_post(post_json_object, system_language)
|
get_base_content_from_post(post_json_object, system_language)
|
||||||
|
|
||||||
if obj_dict_exists:
|
if obj_dict_exists:
|
||||||
if is_quote_toot(post_json_object, content_str):
|
# allow quote toots going to the shared inbox
|
||||||
allow_quotes = False
|
if nickname != 'inbox':
|
||||||
if sending_actor:
|
if is_quote_toot(post_json_object, content_str):
|
||||||
allow_quotes = \
|
allow_quotes = False
|
||||||
quote_toots_allowed(base_dir, nickname, domain,
|
if sending_actor:
|
||||||
post_nickname, post_domain)
|
allow_quotes = \
|
||||||
if not allow_quotes:
|
quote_toots_allowed(base_dir, nickname, domain,
|
||||||
if post_json_object.get('id'):
|
post_nickname, post_domain)
|
||||||
print('REJECT: inbox quote toot ' +
|
if not allow_quotes:
|
||||||
nickname + '@' + domain + ' ' +
|
if post_json_object.get('id'):
|
||||||
str(post_json_object['id']))
|
print('REJECT: inbox quote toot ' +
|
||||||
return None
|
nickname + '@' + domain + ' ' +
|
||||||
|
str(post_json_object['id']))
|
||||||
|
return None
|
||||||
|
|
||||||
# is this a reply to a blocked domain or account?
|
# is this a reply to a blocked domain or account?
|
||||||
reply_id = get_reply_to(post_json_object['object'])
|
reply_id = get_reply_to(post_json_object['object'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue