Comment, Story: crank MAX_EDIT_MINS to 6 hours
This commit is contained in:
parent
b21f96cb1a
commit
46ebed367d
|
@ -25,7 +25,7 @@ class Comment < ActiveRecord::Base
|
||||||
DOWNVOTABLE_DAYS = 7
|
DOWNVOTABLE_DAYS = 7
|
||||||
|
|
||||||
# after this many minutes old, a comment cannot be edited
|
# after this many minutes old, a comment cannot be edited
|
||||||
MAX_EDIT_MINS = (60 * 4)
|
MAX_EDIT_MINS = (60 * 6)
|
||||||
|
|
||||||
validate do
|
validate do
|
||||||
self.comment.to_s.strip == "" &&
|
self.comment.to_s.strip == "" &&
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Story < ActiveRecord::Base
|
||||||
DOWNVOTABLE_DAYS = 14
|
DOWNVOTABLE_DAYS = 14
|
||||||
|
|
||||||
# after this many minutes old, a story cannot be edited
|
# after this many minutes old, a story cannot be edited
|
||||||
MAX_EDIT_MINS = (60 * 3)
|
MAX_EDIT_MINS = (60 * 6)
|
||||||
|
|
||||||
# days a story is considered recent, for resubmitting
|
# days a story is considered recent, for resubmitting
|
||||||
RECENT_DAYS = 30
|
RECENT_DAYS = 30
|
||||||
|
|
Loading…
Reference in a new issue