aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-07-17 03:36:11 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-07-17 03:40:46 +0000
commitcd19d37a90cfceb8bafb380fd8ff8e5a765b7e3d (patch)
tree29820b627a5140ea7b5f2ce1500b1b08c98721b6 /lib
parentf10291a1d322eed22ae594024c9d3d9011a7d5fe (diff)
downloadpleroma-cd19d37a90cfceb8bafb380fd8ff8e5a765b7e3d.tar.gz
mastodon api: use object name as alt text
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 4c20581d6..5dbd59dd9 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -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