Return mimetype with attachment.

This commit is contained in:
Roger Braun 2017-03-30 16:08:23 +02:00
commit 4a6d48b0fe
2 changed files with 12 additions and 4 deletions

View file

@ -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
}