Browse Source

Increase edit "grace period" to 5 minutes

merge-requests/20/head
Deimos 6 years ago
parent
commit
268d98e3de
  1. 2
      tildes/tildes/models/comment/comment.py
  2. 2
      tildes/tildes/models/topic/topic.py

2
tildes/tildes/models/comment/comment.py

@ -28,7 +28,7 @@ from tildes.schemas.comment import CommentSchema
# edits inside this period after creation will not mark the comment as edited # edits inside this period after creation will not mark the comment as edited
EDIT_GRACE_PERIOD = timedelta(minutes=2)
EDIT_GRACE_PERIOD = timedelta(minutes=5)
class Comment(DatabaseModel): class Comment(DatabaseModel):

2
tildes/tildes/models/topic/topic.py

@ -38,7 +38,7 @@ from tildes.schemas.topic import (
# edits inside this period after creation will not mark the topic as edited # edits inside this period after creation will not mark the topic as edited
EDIT_GRACE_PERIOD = timedelta(minutes=2)
EDIT_GRACE_PERIOD = timedelta(minutes=5)
class Topic(DatabaseModel): class Topic(DatabaseModel):

Loading…
Cancel
Save