forked from e621ng/e621ng
[Users] Fix double dot in account to new message
This commit is contained in:
parent
a0fe40db74
commit
0cd5391d3c
@ -444,7 +444,7 @@ class User < ApplicationRecord
|
||||
module ThrottleMethods
|
||||
def throttle_reason(reason)
|
||||
reasons = {
|
||||
REJ_NEWBIE: 'can not yet perform this action. Account is too new.',
|
||||
REJ_NEWBIE: 'can not yet perform this action. Account is too new',
|
||||
REJ_LIMITED: 'have reached the hourly limit for this action'
|
||||
}
|
||||
reasons.fetch(reason, 'unknown throttle reason, please report this as a bug')
|
||||
|
@ -21,7 +21,7 @@ class CommentTest < ActiveSupport::TestCase
|
||||
should "fail creation" do
|
||||
comment = FactoryBot.build(:comment, post: create(:post))
|
||||
comment.save
|
||||
assert_equal(["Creator can not yet perform this action. Account is too new."], comment.errors.full_messages)
|
||||
assert_equal(["Creator can not yet perform this action. Account is too new"], comment.errors.full_messages)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user