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
|
ctr = 0
|
||||||
for itemID, item in sharesJson.items():
|
for itemID, item in sharesJson.items():
|
||||||
# assign owner to the item
|
# assign owner to the item
|
||||||
item['actor'] = \
|
shareActor = ''
|
||||||
itemID.split('#shareditems#')[0].replace('#', '/')
|
if '#shareditems#' in itemID:
|
||||||
|
shareActor = itemID.split('#shareditems#')[0]
|
||||||
|
shareActor = shareActor.replace('#', '/')
|
||||||
|
item['actor'] = shareActor
|
||||||
allSharesJson[str(item['published'])] = item
|
allSharesJson[str(item['published'])] = item
|
||||||
ctr += 1
|
ctr += 1
|
||||||
if ctr >= maxSharesPerAccount:
|
if ctr >= maxSharesPerAccount:
|
||||||
|
|
Loading…
Reference in New Issue