diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-19 20:36:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 20:36:44 +0200 |
commit | dff46b260b2f7d765d254c84a4b89105c7de5e97 (patch) | |
tree | 09c2a1fbabf8859f7aa6c56d73d5d5a7a871dd96 /app/models | |
parent | d22f3a7d5140ef1c3ae6e9bd2241bbb5289af8d1 (diff) |
Fix ignoring whole status because of one invalid hashtag (#11621)
Fix #11618
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/tag.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb index 5094d973d..945e3a3c6 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -114,7 +114,7 @@ class Tag < ApplicationRecord class << self def find_or_create_by_names(name_or_names) Array(name_or_names).map(&method(:normalize)).uniq { |str| str.mb_chars.downcase.to_s }.map do |normalized_name| - tag = matching_name(normalized_name).first || create(name: normalized_name) + tag = matching_name(normalized_name).first || create!(name: normalized_name) yield tag if block_given? |