forked from rDrama/rDrama
remove removing giving 1 coin and approving deducting 1 coin
parent
5642d4a40f
commit
d9be8548be
|
@ -1381,9 +1381,6 @@ def remove_post(post_id, v):
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
v.pay_account('coins', 1)
|
|
||||||
g.db.add(v)
|
|
||||||
|
|
||||||
for sort in COMMENT_SORTS.keys():
|
for sort in COMMENT_SORTS.keys():
|
||||||
cache.delete(f'post_{post.id}_{sort}')
|
cache.delete(f'post_{post.id}_{sort}')
|
||||||
|
|
||||||
|
@ -1418,9 +1415,6 @@ def approve_post(post_id, v):
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
|
|
||||||
v.charge_account('coins', 1)
|
|
||||||
g.db.add(v)
|
|
||||||
|
|
||||||
for sort in COMMENT_SORTS.keys():
|
for sort in COMMENT_SORTS.keys():
|
||||||
cache.delete(f'post_{post.id}_{sort}')
|
cache.delete(f'post_{post.id}_{sort}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue