aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-21 15:08:56 +0200
committerlain <lain@soykaf.club>2020-05-21 15:08:56 +0200
commitcc0d462e91dd29c834c56b82e02022e1babda369 (patch)
treef35287bc7b84d60df4074fd630a7c77d0e60f5aa /lib
parent814c3e51714b2a7de30ed751a6aef361fc712807 (diff)
downloadpleroma-cc0d462e91dd29c834c56b82e02022e1babda369.tar.gz
Attachments: Have the mediaType on the root, too.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/upload.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex
index 1be1a3a5b..797555bff 100644
--- a/lib/pleroma/upload.ex
+++ b/lib/pleroma/upload.ex
@@ -67,6 +67,7 @@ defmodule Pleroma.Upload do
{:ok,
%{
"type" => opts.activity_type,
+ "mediaType" => upload.content_type,
"url" => [
%{
"type" => "Link",