From: lain Date: Sun, 25 Mar 2018 15:08:54 +0000 (+0200) Subject: Return "audio" info in mastodon api. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=09de76ad5af57c238188d41353232a872c6b30dc;p=akkoma Return "audio" info in mastodon api. --- 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