Add more tests for ActivityPub controllers (#13585)

This commit is contained in:
Eugen Rochko
2020-05-03 16:30:36 +02:00
committed by GitHub
parent a1062df1e1
commit 988b0493fe
19 changed files with 1320 additions and 147 deletions

View File

@ -354,7 +354,7 @@ class Status < ApplicationRecord
if account.nil?
where(visibility: visibility)
elsif target_account.blocking?(account) # get rid of blocked peeps
elsif target_account.blocking?(account) || (account.domain.present? && target_account.domain_blocking?(account.domain)) # get rid of blocked peeps
none
elsif account.id == target_account.id # author can see own stuff
all