Merge branch 'master' into glitch-soc/merge-upstream

Conflicts:
- config/initializers/content_security_policy.rb
  (took our version)
This commit is contained in:
Thibaut Girka
2019-08-20 10:33:24 +02:00
3 changed files with 6 additions and 6 deletions

View File

@ -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?