rename 'max_private_messages_per_day' to 'max_personal_messages_per_day'

This commit is contained in:
Arpit Jalan 2018-01-31 11:46:25 +05:30
parent 7cda3a37af
commit 6be536ca50
4 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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."

View File

@ -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

View File

@ -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