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
committerAriadne Conill <ariadne@dereferenced.org>2019-10-05 19:31:11 +0000
commitb97a7709c7f53541aca54ebab63d3307dc33ab1e (patch)
tree700dbaacf21795122f31c7705437447515bda8fe /lib/pleroma/web/common_api/common_api.ex
parent4d85e07e9e64e4e3fd63d94094d6c0b934452f74 (diff)
downloadpleroma-b97a7709c7f53541aca54ebab63d3307dc33ab1e.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 5faddc9f4..184ec6021 100644
--- a/lib/pleroma/web/common_api/common_api.ex
+++ b/lib/pleroma/web/common_api/common_api.ex
@@ -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})