Bump MAX_USER_MENTION_LIVE_AT in comment model (#12972)

This commit is contained in:
Vaidehi Joshi 2021-03-11 09:42:32 -08:00 committed by GitHub
parent 13e335e172
commit 41ef7a7c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,9 @@ class Comment < ApplicationRecord
COMMENTABLE_TYPES = %w[Article PodcastEpisode].freeze
TITLE_DELETED = "[deleted]".freeze
TITLE_HIDDEN = "[hidden by post author]".freeze
MAX_USER_MENTIONS = 7 # Explicitly set to 7 to accomodate DEV Top Seven Posts
# The date that we began limiting the nubmer of user mentions in a comment.
MAX_USER_MENTION_LIVE_AT = Time.utc(2021, 3, 11).freeze
MAX_USER_MENTIONS = 7 # Explicitly set to 7 to accommodate DEV Top 7 Posts
# The date that we began limiting the number of user mentions in a comment.
MAX_USER_MENTION_LIVE_AT = Time.utc(2021, 3, 12).freeze
belongs_to :commentable, polymorphic: true, optional: true
belongs_to :user