CommonAPI: Create profile updates as public.
This saves us lots of sending out because we can use sharedInbox.
This commit is contained in:
parent
4d85e07e9e
commit
b97a7709c7
2 changed files with 8 additions and 2 deletions
|
|
@ -17,6 +17,8 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
import Pleroma.Web.Gettext
|
||||
import Pleroma.Web.CommonAPI.Utils
|
||||
|
||||
require Pleroma.Constants
|
||||
|
||||
def follow(follower, followed) do
|
||||
with {:ok, follower} <- User.maybe_direct_follow(follower, followed),
|
||||
{:ok, activity} <- ActivityPub.follow(follower, followed),
|
||||
|
|
@ -316,7 +318,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
|
||||
ActivityPub.update(%{
|
||||
local: true,
|
||||
to: [user.follower_address],
|
||||
to: [Pleroma.Constants.as_public(), user.follower_address],
|
||||
cc: [],
|
||||
actor: user.ap_id,
|
||||
object: Pleroma.Web.ActivityPub.UserView.render("user.json", %{user: user})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue