From 09de76ad5af57c238188d41353232a872c6b30dc Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 25 Mar 2018 17:08:54 +0200 Subject: [PATCH] Return "audio" info in mastodon api. --- lib/pleroma/web/mastodon_api/views/status_view.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 170b6ac6c..62b967e02 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -131,6 +131,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do type = cond do String.contains?(media_type, "image") -> "image" String.contains?(media_type, "video") -> "video" + String.contains?(media_type, "audio") -> "audio" true -> "unknown" end -- 2.45.2