forked from MarseyWorld/MarseyWorld
fddf
parent
c6647916d7
commit
9af7e60e2c
|
@ -525,7 +525,7 @@ def shadowban(user_id, v):
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -549,7 +549,7 @@ def unshadowban(user_id, v):
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -718,7 +718,7 @@ def ban_post(post_id, v):
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -746,7 +746,7 @@ def unban_post(post_id, v):
|
||||||
|
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -783,7 +783,7 @@ def api_sticky_post(post_id, v):
|
||||||
post.stickied = not (post.stickied)
|
post.stickied = not (post.stickied)
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ def publish(pid, v):
|
||||||
post.private = False
|
post.private = False
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -920,7 +920,7 @@ def submit_post(v):
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
||||||
cache.delete_memoized(User.userpagelisting, 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 "[changelog]" in new_post.title: cache.delete_memoized(changeloglist)
|
||||||
|
|
||||||
if request.headers.get("Authorization"): return new_post.json
|
if request.headers.get("Authorization"): return new_post.json
|
||||||
|
@ -942,7 +942,7 @@ def delete_post_pid(pid, v):
|
||||||
|
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -955,7 +955,7 @@ def undelete_post_pid(pid, v):
|
||||||
post.deleted_utc =0
|
post.deleted_utc =0
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
#cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue