From: William Pitcock Date: Tue, 17 Jul 2018 03:36:11 +0000 (+0000) Subject: mastodon api: use object name as alt text X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cd19d37a90cfceb8bafb380fd8ff8e5a765b7e3d;p=akkoma mastodon api: use object name as alt text --- 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