Fix validation error in SynchronizeFeaturedTagsCollectionWorker (#20018)
* Fix followers count not being updated when migrating follows Fixes #19900 * Fix validation error in SynchronizeFeaturedTagsCollectionWorker Also saves remote user's chosen case for hashtags * Limit remote featured tags before validation
This commit is contained in:
parent
3114c826a7
commit
bbf74498f5
3 changed files with 105 additions and 12 deletions
|
@ -63,6 +63,8 @@ class FeaturedTag < ApplicationRecord
|
|||
end
|
||||
|
||||
def validate_featured_tags_limit
|
||||
return unless account.local?
|
||||
|
||||
errors.add(:base, I18n.t('featured_tags.errors.limit')) if account.featured_tags.count >= LIMIT
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue