diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-04-22 15:31:51 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-04-22 15:31:51 +0000 |
commit | 238058ecaed4ed5102b610d423247e3f4000f26b (patch) | |
tree | 59953b98295df6e3fb989ae8740b6b8a2b0d9c17 /lib/pleroma/user.ex | |
parent | 1855c597c248af0abe8590bec92fd338e53801de (diff) | |
parent | 7a3a88a13ef526fba18bb6aeadc93f5da934dc5b (diff) | |
download | pleroma-238058ecaed4ed5102b610d423247e3f4000f26b.tar.gz |
Merge branch 'bugfix/1543-streaming-boosts' into 'develop'
Streamer: Stream boosts to the boosting user.
Closes #1543
See merge request pleroma/pleroma!2415
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 |