upload: use generic Document object type instead of Image (mastodon compatibility)
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 17 Jul 2018 03:35:08 +0000 (03:35 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 17 Jul 2018 03:40:45 +0000 (03:40 +0000)
Mastodon does not use the object name as alt text when the object is an Image.

lib/pleroma/upload.ex

index 43df0d418f193ff8e1dcb9a1856915dc8879ea20..92a89e2961b72e3d5a2364ed0677f93b6906d1fd 100644 (file)
@@ -19,7 +19,7 @@ defmodule Pleroma.Upload do
     end
 
     %{
-      "type" => "Image",
+      "type" => "Document",
       "url" => [
         %{
           "type" => "Link",