mastodon api: use object name as alt text
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 17 Jul 2018 03:36:11 +0000 (03:36 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 17 Jul 2018 03:40:46 +0000 (03:40 +0000)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 4c20581d6239440f3e52b2a12ca9ee23f44d7d48..5dbd59dd9476692f433f4dbe178258753518905e 100644 (file)
@@ -169,7 +169,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       remote_url: href,
       preview_url: MediaProxy.url(href),
       text_url: href,
-      type: type
+      type: type,
+      description: attachment["name"]
     }
   end