mirror of https://gitlab.com/bashrc2/epicyon
Add index after generating post html
parent
8b7360a7d0
commit
0dd0d1a649
7
inbox.py
7
inbox.py
|
@ -2574,9 +2574,6 @@ def _receiveQuestionVote(baseDir: str, nickname: str, domain: str,
|
|||
return
|
||||
|
||||
removePostFromCache(questionJson, recentPostsCache)
|
||||
# add id to inbox index
|
||||
inboxUpdateIndex('inbox', baseDir, handle,
|
||||
questionPostFilename, debug)
|
||||
# ensure that the cached post is removed if it exists, so
|
||||
# that it then will be recreated
|
||||
cachedPostFilename = \
|
||||
|
@ -2615,6 +2612,10 @@ def _receiveQuestionVote(baseDir: str, nickname: str, domain: str,
|
|||
False, True, False, CWlists,
|
||||
listsEnabled)
|
||||
|
||||
# add id to inbox index
|
||||
inboxUpdateIndex('inbox', baseDir, handle,
|
||||
questionPostFilename, debug)
|
||||
|
||||
# Is this a question created by this instance?
|
||||
idPrefix = httpPrefix + '://' + domain
|
||||
if not questionJson['object']['id'].startswith(idPrefix):
|
||||
|
|
Loading…
Reference in New Issue