Commit 0320ea4b authored by Eugen Rochko's avatar Eugen Rochko

Fix public timeline query

parent 36921be9
......@@ -126,8 +126,8 @@ class Status < ApplicationRecord
.joins('LEFT OUTER JOIN statuses AS parents ON statuses.in_reply_to_id =')
.joins('LEFT OUTER JOIN statuses AS reblogs ON statuses.reblog_of_id =')
.where('parents.account_id NOT IN (?)', blocked)
.where('statuses.account_id NOT IN (?)', blocked)
.where('( IS NULL OR parents.account_id NOT IN (?))', blocked)
.where('( IS NULL OR reblogs.account_id NOT IN (?))', blocked)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment