projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disallow following locked accounts over OStatus
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
mastodon_api_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 5bdbb709ba4a35ddcb192d2fcf0c7d542a8dfa03..174e93468be711608b67b2306efdac8219ef8777 100644
(file)
--- 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
import Ecto.Query
require Logger
+ require Pleroma.Constants
@rate_limited_relations_actions ~w(follow unfollow)a
@rate_limited_relations_actions ~w(follow unfollow)a
@@
-1224,10
+1225,9
@@
defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
recipients =
if for_user 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
else
- [
"https://www.w3.org/ns/activitystreams#Public"
]
+ [
Pleroma.Constants.as_public()
]
end
activities =
end
activities =