diff options
author | lain <lain@soykaf.club> | 2020-04-22 17:21:13 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-22 17:21:13 +0200 |
commit | 7a3a88a13ef526fba18bb6aeadc93f5da934dc5b (patch) | |
tree | c2d0521aab54250b1d96eb7f89cf8a402b815bbf /lib/pleroma/user.ex | |
parent | 1cd38dfffa88384284a8ae0be39f52f25c544936 (diff) | |
download | pleroma-7a3a88a13ef526fba18bb6aeadc93f5da934dc5b.tar.gz |
Streamer: Stream boosts to the boosting user.
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index bef4679cb..477237756 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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 |