diff options
author | Mark Felder <feld@feld.me> | 2021-02-09 18:19:20 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-02-09 18:22:41 -0600 |
commit | 981349f21d401da55168fdb00b245e3dccea1afd (patch) | |
tree | 6d1a6bda8cca59df9049fff10df51380fecf0203 /lib/pleroma | |
parent | 3dc7e89c54ea3d2bf7e81d99ac4efac37cd00e6c (diff) | |
download | pleroma-981349f21d401da55168fdb00b245e3dccea1afd.tar.gz |
Enable rendering of the client application data details
Diffstat (limited to 'lib/pleroma')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 2cd6732fe..e4f623b97 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -180,10 +180,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do media_attachments: reblogged[:media_attachments] || [], mentions: mentions, tags: reblogged[:tags] || [], - application: %{ - name: "Web", - website: nil - }, + application: activity_object.data["application"], language: nil, emojis: [], pleroma: %{ @@ -348,10 +345,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do poll: render(PollView, "show.json", object: object, for: opts[:for]), mentions: mentions, tags: build_tags(tags), - application: %{ - name: "Web", - website: nil - }, + application: object.data["application"], language: nil, emojis: build_emojis(object.data["emoji"]), pleroma: %{ |