Return "audio" info in mastodon api.
authorlain <lain@soykaf.club>
Sun, 25 Mar 2018 15:08:54 +0000 (17:08 +0200)
committerlain <lain@soykaf.club>
Sun, 25 Mar 2018 15:08:54 +0000 (17:08 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 170b6ac6c19839ae8d23ac3afdb01fe0145a29d9..62b967e02ffe770aef4196c5a7168a2527487078 100644 (file)
@@ -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