Don't send bookmark activity

main
Bob Mottram 2020-05-21 19:28:31 +01:00
parent 6635665375
commit 4b4c748813
1 changed files with 17 additions and 17 deletions

View File

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