From aa42b423bd226c2c1ac35aeb0abd1da2bf1b371b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 26 Sep 2020 19:49:06 +0100 Subject: [PATCH] Include post author in hashtag feed --- webinterface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webinterface.py b/webinterface.py index 598d9967..910506c5 100644 --- a/webinterface.py +++ b/webinterface.py @@ -925,11 +925,16 @@ def rssHashtagSearch(nickname: str, domain: str, port: int, continue # add to feed if postJsonObject['object'].get('content') and \ + postJsonObject['object'].get('attributedTo') and \ postJsonObject['object'].get('published'): published = postJsonObject['object']['published'] pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%SZ") rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT") hashtagFeed += ' ' + hashtagFeed += \ + ' ' + \ + postJsonObject['object']['attributedTo'] + \ + '' if postJsonObject['object'].get('summary'): hashtagFeed += \ ' ' + \