mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
303687ba58
commit
82f51299b7
|
@ -381,8 +381,11 @@ def sharesTimelineJson(actor: str, pageNumber: int, itemsPerPage: int,
|
|||
ctr = 0
|
||||
for itemID, item in sharesJson.items():
|
||||
# assign owner to the item
|
||||
item['actor'] = \
|
||||
itemID.split('#shareditems#')[0].replace('#', '/')
|
||||
shareActor = ''
|
||||
if '#shareditems#' in itemID:
|
||||
shareActor = itemID.split('#shareditems#')[0]
|
||||
shareActor = shareActor.replace('#', '/')
|
||||
item['actor'] = shareActor
|
||||
allSharesJson[str(item['published'])] = item
|
||||
ctr += 1
|
||||
if ctr >= maxSharesPerAccount:
|
||||
|
|
Loading…
Reference in New Issue