mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-01-20 06:36:07 +01:00
Fix attachement rendering
This commit is contained in:
parent
a6b021a52b
commit
3b8ef24532
1 changed files with 3 additions and 3 deletions
|
@ -152,9 +152,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
end
|
end
|
||||||
|
|
||||||
def render("attachment.json", %{attachment: attachment}) do
|
def render("attachment.json", %{attachment: attachment}) do
|
||||||
[attachment | _] = attachment["url"]
|
[attachment_url | _] = attachment["url"]
|
||||||
media_type = attachment["mediaType"] || attachment["mimeType"]
|
media_type = attachment_url["mediaType"] || attachment_url["mimeType"]
|
||||||
href = attachment["href"]
|
href = attachment_url["href"]
|
||||||
|
|
||||||
type =
|
type =
|
||||||
cond do
|
cond do
|
||||||
|
|
Loading…
Reference in a new issue