aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-09-28 02:12:12 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-09-30 10:39:17 +0000
commit7cad6ea67a47df2776a15dd69b9e408c517800e6 (patch)
tree1a2089a46688d5eaffa8e3618edf735ea390334f /lib/pleroma/web/mastodon_api
parent2c82d8603bb4c3f7281023752dc78aa31a814ab6 (diff)
downloadpleroma-7cad6ea67a47df2776a15dd69b9e408c517800e6.tar.gz
pleroma api: hook up scrobbler controller
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index cf024a83c..d398f7853 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -385,6 +385,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
}
end
+ def render("listens.json", opts) do
+ safe_render_many(opts.activities, StatusView, "listen.json", opts)
+ end
+
def render("poll.json", %{object: object} = opts) do
{multiple, options} =
case object.data do