main
Bob Mottram 2021-07-27 20:17:15 +01:00
parent 303687ba58
commit 82f51299b7
1 changed files with 5 additions and 2 deletions

View File

@ -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: