forked from indymedia/epicyon
Add attachments to tag rss feed
parent
aa42b423bd
commit
b9d57a510c
|
@ -946,6 +946,12 @@ def rssHashtagSearch(nickname: str, domain: str, port: int,
|
|||
'</description>'
|
||||
hashtagFeed += \
|
||||
' <pubDate>' + rssDateStr + '</pubDate>'
|
||||
if postJsonObject['object'].get('attachment'):
|
||||
for attach in postJsonObject['object']['attachment']:
|
||||
if not attach.get('url'):
|
||||
continue
|
||||
hashtagFeed += \
|
||||
' <link>' + attach['url'] + '</link>'
|
||||
hashtagFeed += ' </item>'
|
||||
index += 1
|
||||
if index >= maxFeedLength:
|
||||
|
|
Loading…
Reference in New Issue