From 0627da0027dfe7be8532718044d894e260e5f6a1 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Tue, 14 Jun 2022 16:25:28 +0100 Subject: [PATCH] mix format --- lib/pleroma/web/common_api/activity_draft.ex | 1 + lib/pleroma/web/mastodon_api/views/status_view.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/pleroma/web/common_api/activity_draft.ex b/lib/pleroma/web/common_api/activity_draft.ex index 08e704ed4..bd56b6e20 100644 --- a/lib/pleroma/web/common_api/activity_draft.ex +++ b/lib/pleroma/web/common_api/activity_draft.ex @@ -214,6 +214,7 @@ defp object(draft) do emoji = Map.merge(emoji, summary_emoji) {:ok, note_data, _meta} = Builder.note(draft) + object = note_data |> Map.put("emoji", emoji) diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index b3d742545..c0f467592 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -328,6 +328,7 @@ def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} ) {pinned?, pinned_at} = pin_data(object, user) + %{ id: to_string(activity.id), uri: object.data["id"],