mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-04 19:52:33 +00:00
Tidying
This commit is contained in:
1 parent
303687ba58
commit
82f51299b7
1 file changed
+5
-2
+5
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user