Fix own posts not getting delivered to own lists (#24810)
This commit is contained in:
parent
45579a26cf
commit
1e75eb690d
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue