bv
This commit is contained in:
parent
b21251b345
commit
8dde94fb29
2 changed files with 5 additions and 5 deletions
|
@ -873,9 +873,9 @@ def edit_comment(cid, v):
|
|||
@auth_required
|
||||
def delete_comment(cid, v):
|
||||
|
||||
comment = get_comment(cid, v=v)
|
||||
c = get_comment(cid, v=v)
|
||||
|
||||
if not comment.deleted_utc:
|
||||
if not c.deleted_utc:
|
||||
|
||||
if c.author_id != v.id: abort(403)
|
||||
|
||||
|
@ -894,9 +894,9 @@ def delete_comment(cid, v):
|
|||
@auth_required
|
||||
def undelete_comment(cid, v):
|
||||
|
||||
comment = get_comment(cid, v=v)
|
||||
c = get_comment(cid, v=v)
|
||||
|
||||
if comment.deleted_utc:
|
||||
if c.deleted_utc:
|
||||
if c.author_id != v.id: abort(403)
|
||||
|
||||
c.deleted_utc = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue