aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-26 21:08:04 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-26 21:08:04 +0300
commit73ae38ca04df02656bfb239ceba4ffe64879e927 (patch)
treed94852a2bd7b735288df24024888df041c692fa4 /lib
parentb4fc96f64023a87dbe6fb556561b22fd15826df7 (diff)
downloadpleroma-73ae38ca04df02656bfb239ceba4ffe64879e927.tar.gz
add deprecated tag
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
index 5e1977b8e..8f6b3456a 100644
--- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
@@ -1474,6 +1474,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
end
end
+ @doc false
+ @deprecated "https://github.com/tootsuite/mastodon/pull/11213"
def status_card(%{assigns: %{user: user}} = conn, %{"id" => id}) do
with %Activity{} = activity <- Activity.get_by_id(id),
true <- Visibility.visible_for_user?(activity, user) do