rename 'max_private_messages_per_day' to 'max_personal_messages_per_day'
This commit is contained in:
parent
7cda3a37af
commit
6be536ca50
|
@ -310,7 +310,7 @@ class Topic < ActiveRecord::Base
|
|||
|
||||
def limit_private_messages_per_day
|
||||
return unless private_message?
|
||||
apply_per_day_rate_limit_for("pms", :max_private_messages_per_day)
|
||||
apply_per_day_rate_limit_for("pms", :max_personal_messages_per_day)
|
||||
end
|
||||
|
||||
def self.fancy_title(title)
|
||||
|
|
|
@ -1203,7 +1203,7 @@ en:
|
|||
max_bookmarks_per_day: "Maximum number of bookmarks per user per day."
|
||||
max_edits_per_day: "Maximum number of edits per user per day."
|
||||
max_topics_per_day: "Maximum number of topics a user can create per day."
|
||||
max_private_messages_per_day: "Maximum number of messages users can create per day."
|
||||
max_personal_messages_per_day: "Maximum number of messages users can create per day."
|
||||
max_invites_per_day: "Maximum number of invites a user can send per day."
|
||||
max_topic_invitations_per_day: "Maximum number of topic invitations a user can send per day."
|
||||
|
||||
|
|
|
@ -1041,7 +1041,7 @@ rate_limits:
|
|||
rate_limit_new_user_create_topic: 120
|
||||
rate_limit_new_user_create_post: 30
|
||||
max_topics_per_day: 20
|
||||
max_private_messages_per_day: 20
|
||||
max_personal_messages_per_day: 20
|
||||
max_likes_per_day: 50
|
||||
max_bookmarks_per_day: 20
|
||||
max_flags_per_day: 20
|
||||
|
|
|
@ -10,6 +10,7 @@ class RenamePrivatePersonal < ActiveRecord::Migration[5.1]
|
|||
setting :enable_private_messages, :enable_personal_messages
|
||||
setting :enable_private_email_messages, :enable_personal_email_messages
|
||||
setting :private_email_time_window_seconds, :personal_email_time_window_seconds
|
||||
setting :max_private_messages_per_day, :max_personal_messages_per_day
|
||||
end
|
||||
|
||||
def down
|
||||
|
@ -18,5 +19,6 @@ class RenamePrivatePersonal < ActiveRecord::Migration[5.1]
|
|||
setting :enable_private_messages, :enable_personal_messages
|
||||
setting :enable_private_email_messages, :enable_personal_email_messages
|
||||
setting :private_email_time_window_seconds, :personal_email_time_window_seconds
|
||||
setting :max_private_messages_per_day, :max_personal_messages_per_day
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue