Return "audio" info in mastodon api.

This commit is contained in:
lain 2018-03-25 17:08:54 +02:00
parent 809bffbb21
commit 09de76ad5a

View file

@ -131,6 +131,7 @@ def render("attachment.json", %{attachment: attachment}) 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