aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/activity_pub/utils.ex
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-06-01 16:43:51 +0000
committerfeld <feld@feld.me>2021-06-01 16:43:51 +0000
commitee52fc840d4d6eb1caab811a9b00ab1b95662d77 (patch)
treea4cafffc0aa601c994dfd4c3a480dfd9dd5bfa3b /lib/pleroma/web/activity_pub/utils.ex
parent75b94a2f352ea255b0785d0f3ba2c849c8355e04 (diff)
parentc435de426d045118ed7be3d77f659f349d2d2245 (diff)
downloadpleroma-ee52fc840d4d6eb1caab811a9b00ab1b95662d77.tar.gz
Merge branch 'cycles-constants' into 'develop'
Recompilation speedup: move as_local_public/0 into ActivityPub.Utils See merge request pleroma/pleroma!3431
Diffstat (limited to 'lib/pleroma/web/activity_pub/utils.ex')
-rw-r--r--lib/pleroma/web/activity_pub/utils.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex
index 0513498aa..1df53f79a 100644
--- a/lib/pleroma/web/activity_pub/utils.ex
+++ b/lib/pleroma/web/activity_pub/utils.ex
@@ -37,6 +37,8 @@ defmodule Pleroma.Web.ActivityPub.Utils do
@supported_report_states ~w(open closed resolved)
@valid_visibilities ~w(public unlisted private direct)
+ def as_local_public, do: Endpoint.url() <> "/#Public"
+
# Some implementations send the actor URI as the actor field, others send the entire actor object,
# so figure out what the actor's URI is based on what we have.
def get_ap_id(%{"id" => id} = _), do: id