aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-06-14 00:26:37 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-08-21 18:24:10 +0200
commit3b8ef245326fb788a0345689c0ac5f01edc19361 (patch)
treeaa01fde3c36856488ebcd7057a02298392e67263 /lib
parenta6b021a52b8d73a2ac5fdbe1298d46be25137223 (diff)
downloadpleroma-3b8ef245326fb788a0345689c0ac5f01edc19361.tar.gz
Fix attachement rendering
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 9625da822..7226a407e 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -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