Return mimetype with attachment.
This commit is contained in:
parent
32aa83f3a2
commit
4a6d48b0fe
2 changed files with 12 additions and 4 deletions
|
|
@ -8,7 +8,11 @@ defmodule Pleroma.Upload do
|
|||
|
||||
%{
|
||||
"type" => "Image",
|
||||
"href" => url_for(Path.join(uuid, file.filename)),
|
||||
"url" => [%{
|
||||
"type" => "Link",
|
||||
"mediaType" => file.content_type,
|
||||
"href" => url_for(Path.join(uuid, file.filename))
|
||||
}],
|
||||
"name" => file.filename,
|
||||
"uuid" => uuid
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue