Add support for funkwhale Audio activity

reel2bits fixture not included as it lacks the Actor fixture for it.

Closes: https://git.pleroma.social/pleroma/pleroma/issues/1624
Closes: https://git.pleroma.social/pleroma/pleroma/issues/764
This commit is contained in:
Haelwenn (lanodan) Monnier 2020-03-11 12:21:44 +01:00
commit 863ec33ba2
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
7 changed files with 124 additions and 4 deletions

View file

@ -421,7 +421,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
end
def render_content(%{data: %{"type" => object_type}} = object)
when object_type in ["Video", "Event"] do
when object_type in ["Video", "Event", "Audio"] do
with name when not is_nil(name) and name != "" <- object.data["name"] do
"<p><a href=\"#{object.data["id"]}\">#{name}</a></p>#{object.data["content"]}"
else