1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Only call all/none from TagFeed when present

This commit is contained in:
Matt Jankowski 2024-03-27 12:26:17 -04:00
parent 7dd11b6bfc
commit 344f8544bc

View file

@ -26,8 +26,8 @@ class TagFeed < PublicFeed
scope = public_scope scope = public_scope
scope.merge!(tagged_with_any_scope) scope.merge!(tagged_with_any_scope)
scope.merge!(tagged_with_all_scope) scope.merge!(tagged_with_all_scope) if options[:all].present?
scope.merge!(tagged_with_none_scope) scope.merge!(tagged_with_none_scope) if options[:none].present?
scope.merge!(local_only_scope) if local_only? scope.merge!(local_only_scope) if local_only?
scope.merge!(remote_only_scope) if remote_only? scope.merge!(remote_only_scope) if remote_only?
scope.merge!(account_filters_scope) if account? scope.merge!(account_filters_scope) if account?