Streamer: Stream boosts to the boosting user.

This commit is contained in:
lain 2020-04-22 17:21:13 +02:00
commit 7a3a88a13e
4 changed files with 51 additions and 19 deletions

View file

@ -1180,7 +1180,9 @@ defmodule Pleroma.User do
end
@spec get_recipients_from_activity(Activity.t()) :: [User.t()]
def get_recipients_from_activity(%Activity{recipients: to}) do
def get_recipients_from_activity(%Activity{recipients: to, actor: actor}) do
to = [actor | to]
User.Query.build(%{recipients_from_activity: to, local: true, deactivated: false})
|> Repo.all()
end