Ingest remote attachment width/height
[akkoma] / lib / pleroma / web / activity_pub / transmogrifier.ex
index 4d9a5617eb9b5b3fcdebfb44b0e3cf0ee9c8aed3..b5767863c6733a70dcb7fe8d067aa65989b34d43 100644 (file)
@@ -245,6 +245,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
               "type" => Map.get(url || %{}, "type", "Link")
             }
             |> Maps.put_if_present("mediaType", media_type)
+            |> Maps.put_if_present("width", (url || %{})["width"])
+            |> Maps.put_if_present("height", (url || %{})["height"])
 
           %{
             "url" => [attachment_url],