forked from indymedia/epicyon
Don't send bookmark activity
parent
6635665375
commit
4b4c748813
34
bookmarks.py
34
bookmarks.py
|
@ -283,15 +283,15 @@ def bookmark(recentPostsCache: {},
|
||||||
updateBookmarksCollection(recentPostsCache,
|
updateBookmarksCollection(recentPostsCache,
|
||||||
baseDir, postFilename, objectUrl,
|
baseDir, postFilename, objectUrl,
|
||||||
newBookmarkJson['actor'], domain, debug)
|
newBookmarkJson['actor'], domain, debug)
|
||||||
|
|
||||||
sendSignedJson(newBookmarkJson, session, baseDir,
|
#sendSignedJson(newBookmarkJson, session, baseDir,
|
||||||
nickname, domain, port,
|
# nickname, domain, port,
|
||||||
bookmarkedPostNickname,
|
# bookmarkedPostNickname,
|
||||||
bookmarkedPostDomain, bookmarkedPostPort,
|
# bookmarkedPostDomain, bookmarkedPostPort,
|
||||||
'https://www.w3.org/ns/activitystreams#Public',
|
# 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
httpPrefix, True, clientToServer, federationList,
|
# httpPrefix, True, clientToServer, federationList,
|
||||||
sendThreads, postLog, cachedWebfingers, personCache,
|
# sendThreads, postLog, cachedWebfingers, personCache,
|
||||||
debug, projectVersion)
|
# debug, projectVersion)
|
||||||
|
|
||||||
return newBookmarkJson
|
return newBookmarkJson
|
||||||
|
|
||||||
|
@ -390,14 +390,14 @@ def undoBookmark(recentPostsCache: {},
|
||||||
newUndoBookmarkJson['actor'],
|
newUndoBookmarkJson['actor'],
|
||||||
domain, debug)
|
domain, debug)
|
||||||
|
|
||||||
sendSignedJson(newUndoBookmarkJson, session, baseDir,
|
#sendSignedJson(newUndoBookmarkJson, session, baseDir,
|
||||||
nickname, domain, port,
|
# nickname, domain, port,
|
||||||
bookmarkedPostNickname, bookmarkedPostDomain,
|
# bookmarkedPostNickname, bookmarkedPostDomain,
|
||||||
bookmarkedPostPort,
|
# bookmarkedPostPort,
|
||||||
'https://www.w3.org/ns/activitystreams#Public',
|
# 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
httpPrefix, True, clientToServer, federationList,
|
# httpPrefix, True, clientToServer, federationList,
|
||||||
sendThreads, postLog, cachedWebfingers, personCache,
|
# sendThreads, postLog, cachedWebfingers, personCache,
|
||||||
debug, projectVersion)
|
# debug, projectVersion)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue