move outbox filtering to Status#permitted_for (as per @ekiru)
This commit is contained in:
@@ -223,7 +223,7 @@ class Status < ApplicationRecord
|
||||
visibility = [:public, :unlisted]
|
||||
|
||||
if account.nil?
|
||||
where(visibility: visibility)
|
||||
where(visibility: visibility).not_local_only
|
||||
elsif target_account.blocking?(account) # get rid of blocked peeps
|
||||
none
|
||||
elsif account.id == target_account.id # author can see own stuff
|
||||
|
||||
Reference in New Issue
Block a user