Fix japanese translations
This commit is contained in:
parent
057456ef7b
commit
072583b60e
5 changed files with 14 additions and 4 deletions
|
@ -16,7 +16,7 @@ class Api::V1::Antennas::KeywordsController < Api::BaseController
|
|||
def create
|
||||
new_keywords = @antenna.keywords || []
|
||||
keywords.each do |keyword|
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.same_keyword') if new_keywords.include?(keyword)
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.duplicate_keyword') if new_keywords.include?(keyword)
|
||||
|
||||
new_keywords << keyword
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue