diff options
author | rinpatch <rinpatch@sdf.org> | 2019-03-15 11:58:12 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-03-15 11:58:12 +0300 |
commit | d7a34b604b15f9e7f73cda834f513d6f62643005 (patch) | |
tree | e41a0f929b4ae4a741fd8d43f81f11768bfbb101 /lib | |
parent | 7ecc201029a8c90cf5dc3313ff78d56eb0a2445c (diff) | |
download | pleroma-d7a34b604b15f9e7f73cda834f513d6f62643005.tar.gz |
Extend MastoAPI to provide attachment mimetypes
Diffstat (limited to 'lib')
-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 bf3aaf025..209119dd5 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -257,7 +257,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do preview_url: href, text_url: href, type: type, - description: attachment["name"] + description: attachment["name"], + pleroma: %{mime_type: media_type} } end |