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"],