Fix handling of featured tag removal (#34887)
This commit is contained in:
@@ -26,6 +26,8 @@ class FeaturedTag < ApplicationRecord
|
||||
|
||||
normalizes :name, with: ->(name) { name.strip.delete_prefix('#') }
|
||||
|
||||
scope :by_name, ->(name) { joins(:tag).where(tag: { name: HashtagNormalizer.new.normalize(name) }) }
|
||||
|
||||
before_validation :set_tag
|
||||
|
||||
before_create :reset_data
|
||||
|
||||
Reference in New Issue
Block a user