Support macgirvin replyTo

main
Bob Mottram 2021-09-16 17:47:52 +01:00
parent 10c164f013
commit b8ddbd1030
1 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,11 @@ def _getReplyIconHtml(nickname: str, isPublicRepeat: bool,
# reply is permitted - create reply icon
replyToLink = postJsonObject['object']['id']
# see Mike MacGirvin's replyTo suggestion
if postJsonObject['object'].get('replyTo'):
replyToLink = postJsonObject['object']['replyTo']
if postJsonObject['object'].get('attributedTo'):
if isinstance(postJsonObject['object']['attributedTo'], str):
replyToLink += \