mirror of https://gitlab.com/bashrc2/epicyon
Sending updates via outbox
parent
91298ab291
commit
c65be9094b
10
outbox.py
10
outbox.py
|
@ -415,7 +415,12 @@ def post_message_to_outbox(session, translate: {},
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: save_post_to_box')
|
print('DEBUG: save_post_to_box')
|
||||||
|
|
||||||
if message_json['type'] != 'Update':
|
is_edited_post = False
|
||||||
|
if message_json['type'] == 'Update' and \
|
||||||
|
message_json['object']['type'] == 'Note':
|
||||||
|
is_edited_post = True
|
||||||
|
message_json['type'] = 'Create'
|
||||||
|
|
||||||
outbox_name = 'outbox'
|
outbox_name = 'outbox'
|
||||||
|
|
||||||
store_hash_tags(base_dir, post_to_nickname, domain,
|
store_hash_tags(base_dir, post_to_nickname, domain,
|
||||||
|
@ -558,6 +563,9 @@ def post_message_to_outbox(session, translate: {},
|
||||||
bold_reading, dogwhistles,
|
bold_reading, dogwhistles,
|
||||||
minimize_all_images)
|
minimize_all_images)
|
||||||
|
|
||||||
|
if is_edited_post:
|
||||||
|
message_json['type'] = 'Update'
|
||||||
|
|
||||||
if outbox_announce(recent_posts_cache,
|
if outbox_announce(recent_posts_cache,
|
||||||
base_dir, message_json, debug):
|
base_dir, message_json, debug):
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue