diff options
| author | lain <lain@soykaf.club> | 2018-03-25 17:08:54 +0200 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2018-03-25 17:08:54 +0200 | 
| commit | 09de76ad5af57c238188d41353232a872c6b30dc (patch) | |
| tree | 34899e5530d7c1376c2a172b4cab7b59c172988f | |
| parent | 809bffbb21aa3f587e89b220c5309ea75e1e15ff (diff) | |
| download | pleroma-09de76ad5af57c238188d41353232a872c6b30dc.tar.gz pleroma-09de76ad5af57c238188d41353232a872c6b30dc.zip  | |
Return "audio" info in mastodon api.
| -rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 1 | 
1 files changed, 1 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 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  | 
