Try to warm the cache with the preview image if preview proxy enabled
authorMark Felder <feld@FreeBSD.org>
Fri, 21 Aug 2020 17:19:35 +0000 (12:19 -0500)
committerMark Felder <feld@FreeBSD.org>
Fri, 21 Aug 2020 17:19:35 +0000 (12:19 -0500)
lib/pleroma/web/activity_pub/mrf/media_proxy_warming_policy.ex

index dfab105a3e4fe6d7616a9b95dfba5cd064186e93..5d8bb72aa98ec8fd74839fb7c12f221d9c9bbf98 100644 (file)
@@ -27,7 +27,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do
       end
 
     url
-    |> MediaProxy.url()
+    |> MediaProxy.preview_url()
     |> HTTP.get([], adapter: opts)
   end