Fix awkwardly-worded nature of scheduled too soon error (#33156)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-12-04 07:43:29 +00:00
1 parent 7420f59f76
commit 6fddf1610c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1677,7 +1677,7 @@ en:
scheduled_statuses:
over_daily_limit: You have exceeded the limit of %{limit} scheduled posts for today
over_total_limit: You have exceeded the limit of %{limit} scheduled posts
too_soon: The scheduled date must be in the future
too_soon: 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.
title: This server is closing down
+1 -1
View File
@@ -70,7 +70,7 @@ RSpec.describe PostStatusService do
subject.call(account, text: 'Hi future!', scheduled_at: invalid_scheduled_time)
end.to raise_error(
ActiveRecord::RecordInvalid,
'Validation failed: Scheduled at The scheduled date must be in the future'
'Validation failed: Scheduled at date must be in the future'
)
end
end