Fix DM timeline failing to load from database

lolsob-rspec
Claire 2021-03-12 22:31:17 +01:00
parent cac47e6ede
commit 5e83d10e29
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class DirectFeed < Feed
statuses = Status.as_direct_timeline(@account, limit, max_id, since_id, min_id) statuses = Status.as_direct_timeline(@account, limit, max_id, since_id, min_id)
return statuses if statuses.empty? return statuses if statuses.empty?
max_id = statuses.last.id max_id = statuses.last.id
statuses = statuses.reject { |status| FeedManager.instance.filter?(:direct, status, @account.id) } statuses = statuses.reject { |status| FeedManager.instance.filter?(:direct, status, @account) }
return statuses unless statuses.empty? return statuses unless statuses.empty?
end end
end end