forked from indymedia/epicyon
Tidying
parent
4b4c748813
commit
ba88f72871
19
bookmarks.py
19
bookmarks.py
|
@ -16,7 +16,6 @@ from utils import locatePost
|
|||
from utils import getCachedPostFilename
|
||||
from utils import loadJson
|
||||
from utils import saveJson
|
||||
from posts import sendSignedJson
|
||||
from session import postJson
|
||||
from webfinger import webfingerHandle
|
||||
from auth import createBasicAuthHeader
|
||||
|
@ -284,15 +283,6 @@ def bookmark(recentPostsCache: {},
|
|||
baseDir, postFilename, objectUrl,
|
||||
newBookmarkJson['actor'], domain, debug)
|
||||
|
||||
#sendSignedJson(newBookmarkJson, session, baseDir,
|
||||
# nickname, domain, port,
|
||||
# bookmarkedPostNickname,
|
||||
# bookmarkedPostDomain, bookmarkedPostPort,
|
||||
# 'https://www.w3.org/ns/activitystreams#Public',
|
||||
# httpPrefix, True, clientToServer, federationList,
|
||||
# sendThreads, postLog, cachedWebfingers, personCache,
|
||||
# debug, projectVersion)
|
||||
|
||||
return newBookmarkJson
|
||||
|
||||
|
||||
|
@ -389,15 +379,6 @@ def undoBookmark(recentPostsCache: {},
|
|||
baseDir, postFilename, objectUrl,
|
||||
newUndoBookmarkJson['actor'],
|
||||
domain, debug)
|
||||
|
||||
#sendSignedJson(newUndoBookmarkJson, session, baseDir,
|
||||
# nickname, domain, port,
|
||||
# bookmarkedPostNickname, bookmarkedPostDomain,
|
||||
# bookmarkedPostPort,
|
||||
# 'https://www.w3.org/ns/activitystreams#Public',
|
||||
# httpPrefix, True, clientToServer, federationList,
|
||||
# sendThreads, postLog, cachedWebfingers, personCache,
|
||||
# debug, projectVersion)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
19
posts.py
19
posts.py
|
@ -2504,16 +2504,15 @@ def createBoxIndexed(recentPostsCache: {},
|
|||
|
||||
# bookmarks timeline is like the inbox but has its own separate index
|
||||
indexBoxName = boxname
|
||||
if boxname == 'tlbookmarks':
|
||||
indexBoxName = 'bookmarks'
|
||||
elif boxname == 'dm':
|
||||
indexBoxName = 'dm'
|
||||
elif boxname == 'tlreplies':
|
||||
indexBoxName = 'tlreplies'
|
||||
elif boxname == 'tlmedia':
|
||||
indexBoxName = 'tlmedia'
|
||||
elif boxname == 'tlblogs':
|
||||
indexBoxName = 'tlblogs'
|
||||
boxes = {
|
||||
"tlbookmarks": "bookmarks",
|
||||
"dm": "dm",
|
||||
"tlreplies": "tlreplies",
|
||||
"tlmedia": "tlmedia",
|
||||
"tlblogs": "tlblogs"
|
||||
}
|
||||
if boxes.get(boxname):
|
||||
indexBoxName = boxes[boxname]
|
||||
|
||||
if port:
|
||||
if port != 80 and port != 443:
|
||||
|
|
Loading…
Reference in New Issue