From b9d57a510c334daafc2e68d6627ad8fdce25d360 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 26 Sep 2020 19:53:10 +0100 Subject: [PATCH] Add attachments to tag rss feed --- webinterface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webinterface.py b/webinterface.py index 910506c5..a5071349 100644 --- a/webinterface.py +++ b/webinterface.py @@ -946,6 +946,12 @@ def rssHashtagSearch(nickname: str, domain: str, port: int, '' hashtagFeed += \ ' ' + rssDateStr + '' + if postJsonObject['object'].get('attachment'): + for attach in postJsonObject['object']['attachment']: + if not attach.get('url'): + continue + hashtagFeed += \ + ' ' + attach['url'] + '' hashtagFeed += ' ' index += 1 if index >= maxFeedLength: