projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809bffb
)
Return "audio" info in mastodon api.
author
lain
<lain@soykaf.club>
Sun, 25 Mar 2018 15:08:54 +0000
(17:08 +0200)
committer
lain
<lain@soykaf.club>
Sun, 25 Mar 2018 15:08:54 +0000
(17:08 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 170b6ac6c19839ae8d23ac3afdb01fe0145a29d9..62b967e02ffe770aef4196c5a7168a2527487078 100644
(file)
--- 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