mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
Dashes
This commit is contained in:
1 parent
ad693e91f8
commit
ac75704734
2 files changed
+3
-3
No files matched your search
@@ -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,
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user