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):
|
if os.path.isfile(muteFilename):
|
||||||
os.remove(muteFilename)
|
os.remove(muteFilename)
|
||||||
|
|
||||||
# remove any moderation file
|
# remove any votes file
|
||||||
moderationFilename = postFilename + '.moderate'
|
votesFilename = postFilename + '.votes'
|
||||||
if os.path.isfile(moderationFilename):
|
if os.path.isfile(votesFilename):
|
||||||
os.remove(moderationFilename)
|
os.remove(votesFilename)
|
||||||
|
|
||||||
# remove cached html version of the post
|
# remove cached html version of the post
|
||||||
cachedPostFilename = \
|
cachedPostFilename = \
|
||||||
|
|
Loading…
Reference in New Issue