forked from indymedia/epicyon
Include post author in hashtag feed
parent
fddbb1f2f8
commit
aa42b423bd
|
@ -925,11 +925,16 @@ def rssHashtagSearch(nickname: str, domain: str, port: int,
|
||||||
continue
|
continue
|
||||||
# add to feed
|
# add to feed
|
||||||
if postJsonObject['object'].get('content') and \
|
if postJsonObject['object'].get('content') and \
|
||||||
|
postJsonObject['object'].get('attributedTo') and \
|
||||||
postJsonObject['object'].get('published'):
|
postJsonObject['object'].get('published'):
|
||||||
published = postJsonObject['object']['published']
|
published = postJsonObject['object']['published']
|
||||||
pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%SZ")
|
pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%SZ")
|
||||||
rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")
|
rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")
|
||||||
hashtagFeed += ' <item>'
|
hashtagFeed += ' <item>'
|
||||||
|
hashtagFeed += \
|
||||||
|
' <author>' + \
|
||||||
|
postJsonObject['object']['attributedTo'] + \
|
||||||
|
'</author>'
|
||||||
if postJsonObject['object'].get('summary'):
|
if postJsonObject['object'].get('summary'):
|
||||||
hashtagFeed += \
|
hashtagFeed += \
|
||||||
' <title>' + \
|
' <title>' + \
|
||||||
|
|
Loading…
Reference in New Issue