master
Aevann1 2021-08-18 02:31:48 +02:00
parent c6647916d7
commit 9af7e60e2c
2 changed files with 9 additions and 9 deletions

View File

@ -525,7 +525,7 @@ def shadowban(user_id, v):
)
g.db.add(ma)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -549,7 +549,7 @@ def unshadowban(user_id, v):
)
g.db.add(ma)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -718,7 +718,7 @@ def ban_post(post_id, v):
)
g.db.add(ma)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -746,7 +746,7 @@ def unban_post(post_id, v):
g.db.add(post)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -783,7 +783,7 @@ def api_sticky_post(post_id, v):
post.stickied = not (post.stickied)
g.db.add(post)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204

View File

@ -31,7 +31,7 @@ def publish(pid, v):
post.private = False
g.db.add(post)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -920,7 +920,7 @@ def submit_post(v):
g.db.add(v)
cache.delete_memoized(User.userpagelisting, v)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
if "[changelog]" in new_post.title: cache.delete_memoized(changeloglist)
if request.headers.get("Authorization"): return new_post.json
@ -942,7 +942,7 @@ def delete_post_pid(pid, v):
g.db.add(post)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204
@ -955,7 +955,7 @@ def undelete_post_pid(pid, v):
post.deleted_utc =0
g.db.add(post)
cache.delete_memoized(frontlist)
#cache.delete_memoized(frontlist)
return "", 204