mirror of https://gitlab.com/bashrc2/epicyon
Dashes
parent
ad693e91f8
commit
ac75704734
|
@ -93,7 +93,7 @@ def getValidSharedItemID(actor: str, displayName: str) -> str:
|
|||
displayName = displayName.replace("’", "'")
|
||||
actor = actor.replace('://', '___')
|
||||
actor = actor.replace('/', '--')
|
||||
return actor + '#shareditems#' + displayName
|
||||
return actor + '--shareditems--' + displayName
|
||||
|
||||
|
||||
def removeSharedItem(baseDir: str, nickname: str, domain: str,
|
||||
|
|
|
@ -382,8 +382,8 @@ def sharesTimelineJson(actor: str, pageNumber: int, itemsPerPage: int,
|
|||
for itemID, item in sharesJson.items():
|
||||
# assign owner to the item
|
||||
shareActor = ''
|
||||
if '#shareditems#' in itemID:
|
||||
shareActor = itemID.split('#shareditems#')[0]
|
||||
if '--shareditems--' in itemID:
|
||||
shareActor = itemID.split('--shareditems--')[0]
|
||||
shareActor = shareActor.replace('___', '://')
|
||||
shareActor = shareActor.replace('--', '/')
|
||||
item['actor'] = shareActor
|
||||
|
|
Loading…
Reference in New Issue