mirror of https://gitlab.com/bashrc2/epicyon
Remove votes file if post is deleted
parent
1457e966fe
commit
092be5c5c5
8
utils.py
8
utils.py
|
@ -633,10 +633,10 @@ def deletePost(baseDir: str, httpPrefix: str,
|
|||
if os.path.isfile(muteFilename):
|
||||
os.remove(muteFilename)
|
||||
|
||||
# remove any moderation file
|
||||
moderationFilename = postFilename + '.moderate'
|
||||
if os.path.isfile(moderationFilename):
|
||||
os.remove(moderationFilename)
|
||||
# remove any votes file
|
||||
votesFilename = postFilename + '.votes'
|
||||
if os.path.isfile(votesFilename):
|
||||
os.remove(votesFilename)
|
||||
|
||||
# remove cached html version of the post
|
||||
cachedPostFilename = \
|
||||
|
|
Loading…
Reference in New Issue