Enable rendering of the client application data details
authorMark Felder <feld@feld.me>
Wed, 10 Feb 2021 00:19:20 +0000 (18:19 -0600)
committerMark Felder <feld@feld.me>
Wed, 10 Feb 2021 00:22:41 +0000 (18:22 -0600)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 2cd6732fe0a5ee9cac257cc5dd9c5ca863936814..e4f623b973550ab78db3998bedcdbc628f2b2007 100644 (file)
@@ -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: %{