diff options
author | lain <lain@soykaf.club> | 2020-01-30 19:16:15 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-01-30 19:16:15 +0100 |
commit | 57b8258ca921a3f37d1b3849a5c5f7a64812d125 (patch) | |
tree | 3ba8eaf1d4fb868da5037fec921fc07b2b2911fe /lib/pleroma/web/mastodon_api | |
parent | a0d9d42eaab397a1913038fea5c2d3630b812849 (diff) | |
download | pleroma-thumbnail-proxy.tar.gz |
Previewing proxy proof of conceptthumbnail-proxy
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 5df29d93f..55eac2837 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -358,6 +358,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do [attachment_url | _] = attachment["url"] media_type = attachment_url["mediaType"] || attachment_url["mimeType"] || "image" href = attachment_url["href"] |> MediaProxy.url() + href_preview = attachment_url["href"] |> MediaProxy.preview_url() type = cond do @@ -373,7 +374,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do id: to_string(attachment["id"] || hash_id), url: href, remote_url: href, - preview_url: href, + preview_url: href_preview, text_url: href, type: type, description: attachment["name"], |