aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-22 17:06:12 +0200
committerlain <lain@soykaf.club>2020-05-22 17:06:12 +0200
commit355aa3bdc78465a42a9e0b20baaefd4fba04f596 (patch)
treeb11f811d193251d5c0f3a6cda3b657df309cc5ba /lib/pleroma/web/common_api
parent8a4bd9e5d17bd1acb5c5a61b85ac125202a4aaa4 (diff)
downloadpleroma-355aa3bdc78465a42a9e0b20baaefd4fba04f596.tar.gz
ActivityPubController: Add Mastodon activity compat route.
Diffstat (limited to 'lib/pleroma/web/common_api')
-rw-r--r--lib/pleroma/web/common_api/utils.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index b9fa21648..bf9ca7740 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -468,6 +468,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|> Enum.map(& &1.ap_id)
recipients ++ subscriber_ids
+ else
+ _e -> recipients
end
end
@@ -479,6 +481,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|> User.get_followers()
|> Enum.map(& &1.ap_id)
|> Enum.concat(recipients)
+ else
+ _e -> recipients
end
end