mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
Return "audio" info in mastodon api.
This commit is contained in:
parent
809bffbb21
commit
09de76ad5a
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
type = cond do
|
type = cond do
|
||||||
String.contains?(media_type, "image") -> "image"
|
String.contains?(media_type, "image") -> "image"
|
||||||
String.contains?(media_type, "video") -> "video"
|
String.contains?(media_type, "video") -> "video"
|
||||||
|
String.contains?(media_type, "audio") -> "audio"
|
||||||
true -> "unknown"
|
true -> "unknown"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue