Use the image thumbnail for rich metadata (OGP/Twittercards)
authorMark Felder <feld@FreeBSD.org>
Sat, 22 Aug 2020 20:12:11 +0000 (15:12 -0500)
committerMark Felder <feld@FreeBSD.org>
Sat, 22 Aug 2020 20:12:11 +0000 (15:12 -0500)
lib/pleroma/web/metadata/utils.ex

index 2f0dfb474b16e8d1780d15bb6e606be4922b4378..8a206e019a35808b40a52287a17c4f6f6fba8682 100644 (file)
@@ -38,7 +38,7 @@ defmodule Pleroma.Web.Metadata.Utils do
   def scrub_html(content), do: content
 
   def attachment_url(url) do
-    MediaProxy.url(url)
+    MediaProxy.preview_url(url)
   end
 
   def user_name_string(user) do