Commit 09de76ad authored by lain's avatar lain

Return "audio" info in mastodon api.

parent 809bffbb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment