1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix variable name for scheduled status limits

This commit is contained in:
GunChleoc 2023-09-24 09:09:12 +01:00
parent f018ea8ff4
commit a536f5c26a
2 changed files with 6 additions and 6 deletions

View file

@ -30,10 +30,10 @@ class ScheduledStatus < ApplicationRecord
end
def validate_total_limit
errors.add(:base, I18n.t('scheduled_statuses.over_total_limit', count: TOTAL_LIMIT)) if account.scheduled_statuses.count >= TOTAL_LIMIT
errors.add(:base, I18n.t('scheduled_statuses.over_total_limit', limit: TOTAL_LIMIT)) if account.scheduled_statuses.count >= TOTAL_LIMIT
end
def validate_daily_limit
errors.add(:base, I18n.t('scheduled_statuses.over_daily_limit', count: DAILY_LIMIT)) if account.scheduled_statuses.where('scheduled_at::date = ?::date', scheduled_at).count >= DAILY_LIMIT
errors.add(:base, I18n.t('scheduled_statuses.over_daily_limit', limit: DAILY_LIMIT)) if account.scheduled_statuses.where('scheduled_at::date = ?::date', scheduled_at).count >= DAILY_LIMIT
end
end

View file

@ -1595,11 +1595,11 @@ en:
tag: 'Public posts tagged #%{hashtag}'
scheduled_statuses:
over_daily_limit:
one: You have exceeded the limit of %{count} scheduled post for today
other: You have exceeded the limit of %{count} scheduled posts for today
one: You have exceeded the limit of %{limit} scheduled post for today
other: You have exceeded the limit of %{limit} scheduled posts for today
over_total_limit:
one: You have exceeded the limit of %{count} scheduled post
other: You have exceeded the limit of %{count} scheduled posts
one: You have exceeded the limit of %{limit} scheduled post
other: You have exceeded the limit of %{limit} scheduled posts
too_soon: The scheduled date must be in the future
self_destruct:
lead_html: Unfortunately, <strong>%{domain}</strong> is permanently closing down. If you had an account there, you will not be able to continue using it, but you can still request a backup of your data.