Merge branch 'bugfix/1543-streaming-boosts' into 'develop'
[akkoma] / lib / pleroma / user.ex
index bef4679cbad9c47bc0aa83ad2c5f8ae2de47880f..477237756b0449105eada1726835ccfea6f3c9bb 100644 (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