diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-11-11 12:51:13 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-11-11 12:51:13 -0600 |
commit | 2254e5e5958803beef94e2d01bdb04647a1f82c9 (patch) | |
tree | 8633c6a095d35c11a9ab2b1d4704abcb7d47fdea /lib/pleroma/web/mastodon_api | |
parent | 6fd72e9e8526680836e1bf34c58e10b66dcfee8c (diff) | |
download | pleroma-2254e5e5958803beef94e2d01bdb04647a1f82c9.tar.gz |
Render blurhashes in Mastodon API
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 3 |
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 435bcde15..7cbbd3750 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -435,7 +435,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do text_url: href, type: type, description: attachment["name"], - pleroma: %{mime_type: media_type} + pleroma: %{mime_type: media_type}, + blurhash: attachment["blurhash"] } end |