Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/controllers/api/v1/timelines/public_controller.rb - app/lib/feed_manager.rb - app/models/status.rb - app/services/precompute_feed_service.rb - app/workers/feed_insert_worker.rb - spec/models/status_spec.rb All conflicts are due to upstream refactoring feed management and us having local-only toots on top of that. Rewrote local-only toots management for upstream's changes.
This commit is contained in:
@@ -29,13 +29,13 @@ class FeedInsertWorker
|
||||
end
|
||||
|
||||
def feed_filtered?
|
||||
# Note: Lists are a variation of home, so the filtering rules
|
||||
# of home apply to both
|
||||
case @type
|
||||
when :home, :list
|
||||
FeedManager.instance.filter?(:home, @status, @follower.id)
|
||||
when :home
|
||||
FeedManager.instance.filter?(:home, @status, @follower)
|
||||
when :list
|
||||
FeedManager.instance.filter?(:list, @status, @list)
|
||||
when :direct
|
||||
FeedManager.instance.filter?(:direct, @status, @account.id)
|
||||
FeedManager.instance.filter?(:direct, @status, @account)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user