only log edits after 3 minutes have passed
parent
18ba6becd3
commit
a0fcd6f6ef
|
@ -637,6 +637,7 @@ def edit_comment(cid, v):
|
||||||
if c.author.hieroglyphs and marseyaward_body_regex.search(body_html):
|
if c.author.hieroglyphs and marseyaward_body_regex.search(body_html):
|
||||||
abort(403, "You can only type marseys!")
|
abort(403, "You can only type marseys!")
|
||||||
|
|
||||||
|
if int(time.time()) - c.created_utc > 60 * 3:
|
||||||
edit_log = CommentEdit(
|
edit_log = CommentEdit(
|
||||||
comment_id=c.id,
|
comment_id=c.id,
|
||||||
old_body=c.body,
|
old_body=c.body,
|
||||||
|
|
|
@ -1057,6 +1057,7 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
|
if int(time.time()) - p.created_utc > 60 * 3:
|
||||||
edit_log = PostEdit(
|
edit_log = PostEdit(
|
||||||
post_id=p.id,
|
post_id=p.id,
|
||||||
old_title=p.title,
|
old_title=p.title,
|
||||||
|
|
Loading…
Reference in New Issue