Discard misattributed remote statuses, improve timelines filter

This commit is contained in:
Eugen Rochko committed 2016-11-10 00:15:49 +01:00
1 parent 17903c6dae
commit aabf884c5f
3 files changed
+15 -4

No files matched your search

+1
View File
@@ -121,6 +121,7 @@ class Status < ApplicationRecord
def filter_timeline(query, account)
blocked = Block.where(account: account).pluck(:target_account_id)
return query if blocked.empty?
query
.joins('LEFT OUTER JOIN statuses AS parents ON statuses.in_reply_to_id = parents.id')