mirror of https://gitlab.com/bashrc2/epicyon
Show Friendica timeline after search on handle
parent
aaa201ba9a
commit
a19d5a5865
|
@ -283,16 +283,31 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
if isCreateInsideAnnounce(item):
|
if isCreateInsideAnnounce(item):
|
||||||
isAnnouncedFeedItem = True
|
isAnnouncedFeedItem = True
|
||||||
item = item['object']
|
item = item['object']
|
||||||
if not item.get('actor'):
|
|
||||||
continue
|
|
||||||
if not isAnnouncedFeedItem and item['actor'] != personUrl:
|
|
||||||
continue
|
|
||||||
if not item.get('type'):
|
if not item.get('type'):
|
||||||
continue
|
continue
|
||||||
if item['type'] == 'Create':
|
if item['type'] == 'Create':
|
||||||
if not hasObjectDict(item):
|
if not hasObjectDict(item):
|
||||||
continue
|
continue
|
||||||
if item['type'] != 'Create' and item['type'] != 'Announce':
|
if item['type'] != 'Create' and item['type'] != 'Announce':
|
||||||
|
if item['type'] != 'Note':
|
||||||
|
continue
|
||||||
|
if not item.get('to'):
|
||||||
|
continue
|
||||||
|
# wrap in create
|
||||||
|
cc = []
|
||||||
|
if item.get('cc'):
|
||||||
|
cc = item['cc']
|
||||||
|
newItem = {
|
||||||
|
'object': item,
|
||||||
|
'to': item['to'],
|
||||||
|
'cc': cc,
|
||||||
|
'actor': personUrl,
|
||||||
|
'type': 'Create'
|
||||||
|
}
|
||||||
|
item = newItem
|
||||||
|
if not item.get('actor'):
|
||||||
|
continue
|
||||||
|
if not isAnnouncedFeedItem and item['actor'] != personUrl:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
profileStr += \
|
profileStr += \
|
||||||
|
|
Loading…
Reference in New Issue