0
0
Fork 0

Fix own posts not getting delivered to own lists (#24810)

This commit is contained in:
Claire 2023-05-03 19:17:40 +02:00 committed by GitHub
parent 45579a26cf
commit 1e75eb690d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -271,8 +271,8 @@ module AccountInteractions
end
def lists_for_local_distribution
lists.joins(account: :user)
.where.not(list_accounts: { follow_id: nil })
scope = lists.joins(account: :user)
scope.where.not(list_accounts: { follow_id: nil }).or(scope.where(account_id: id))
.where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago)
end