aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/common_api.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-05 14:53:50 +0200
committerlain <lain@soykaf.club>2019-10-05 14:53:50 +0200
commit276a52016307707fa6a2f91bd9a3038dcfb71ba7 (patch)
tree3c97ab34e7c6d7a99d6a81bcc16ad266a8540dc9 /lib/pleroma/web/common_api/common_api.ex
parent4b8524f392e659d568ba6b0648952d7a1e314be0 (diff)
downloadpleroma-276a52016307707fa6a2f91bd9a3038dcfb71ba7.tar.gz
CommonAPI: Create profile updates as public.
This saves us lots of sending out because we can use sharedInbox.
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r--lib/pleroma/web/common_api/common_api.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex
index ce73b3270..386408d51 100644
--- a/lib/pleroma/web/common_api/common_api.ex
+++ b/lib/pleroma/web/common_api/common_api.ex
@@ -16,6 +16,8 @@ defmodule Pleroma.Web.CommonAPI do
import Pleroma.Web.Gettext
import Pleroma.Web.CommonAPI.Utils
+ require Pleroma.Constants
+
def follow(follower, followed) do
timeout = Pleroma.Config.get([:activitypub, :follow_handshake_timeout])
@@ -271,7 +273,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})