Ingest remote attachment width/height
This commit is contained in:
parent
ab9eabdf20
commit
4c060ae733
5 changed files with 50 additions and 5 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue