Verified Commit 3b8ef245 authored by Haelwenn's avatar Haelwenn

Fix attachement rendering

parent a6b021a5
......@@ -152,9 +152,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
end
def render("attachment.json", %{attachment: attachment}) do
[attachment | _] = attachment["url"]
media_type = attachment["mediaType"] || attachment["mimeType"]
href = attachment["href"]
[attachment_url | _] = attachment["url"]
media_type = attachment_url["mediaType"] || attachment_url["mimeType"]
href = attachment_url["href"]
type =
cond do
......
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