move outbox filtering to Status#permitted_for (as per @ekiru)

This commit is contained in:
Erin
2017-12-11 15:28:04 -06:00
parent 3ec47e732b
commit c5a4eda694
2 changed files with 2 additions and 2 deletions

View File

@@ -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