Additional quote toot style

merge-requests/30/head
Bob Mottram 2023-07-19 10:59:34 +01:00
parent 2d75d8d2af
commit 39553b69a3
1 changed files with 2 additions and 0 deletions

View File

@ -4269,6 +4269,8 @@ def is_quote_toot(post_json_object: str, content: str) -> bool:
# Pleroma/Misskey implementations
if post_json_object['object'].get('quoteUri') or \
post_json_object['object'].get('quoteUrl') or \
post_json_object['object'].get('quoteReply') or \
post_json_object['object'].get('toot:quoteReply') or \
post_json_object['object'].get('_misskey_quote'):
return True
# More correct ActivityPub implementation - adding a Link tag