diff options
author | lain <lain@soykaf.club> | 2019-07-29 16:30:47 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-07-29 16:30:47 +0000 |
commit | 1dfde4151ca096742da593160d33a629494c9f1c (patch) | |
tree | 8999d2c1ccdea93e55e1ac7961778bc8d9054873 /lib/pleroma/web/mastodon_api | |
parent | 3b8cd27b053e08bfb06a248033477efdb9e78684 (diff) | |
parent | b93498eb5289dc92587b77c316ed9f697bb9e5c8 (diff) | |
download | pleroma-1dfde4151ca096742da593160d33a629494c9f1c.tar.gz |
Merge branch 'refactor/use-constants' into 'develop'
refactoring: begin to use constants
See merge request pleroma/pleroma!1500
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 5bdbb709b..174e93468 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -49,6 +49,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do import Ecto.Query require Logger + require Pleroma.Constants @rate_limited_relations_actions ~w(follow unfollow)a @@ -1224,10 +1225,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do recipients = if for_user do - ["https://www.w3.org/ns/activitystreams#Public"] ++ - [for_user.ap_id | for_user.following] + [Pleroma.Constants.as_public()] ++ [for_user.ap_id | for_user.following] else - ["https://www.w3.org/ns/activitystreams#Public"] + [Pleroma.Constants.as_public()] end activities = |