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>'
|
'</description>'
|
||||||
hashtagFeed += \
|
hashtagFeed += \
|
||||||
' <pubDate>' + rssDateStr + '</pubDate>'
|
' <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>'
|
hashtagFeed += ' </item>'
|
||||||
index += 1
|
index += 1
|
||||||
if index >= maxFeedLength:
|
if index >= maxFeedLength:
|
||||||
|
|
Loading…
Reference in New Issue