main
Bob Mottram 2021-07-27 21:17:36 +01:00
parent ad693e91f8
commit ac75704734
2 changed files with 3 additions and 3 deletions

View File

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

View File

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