From: FloatingGhost Date: Tue, 14 Jun 2022 15:25:28 +0000 (+0100) Subject: mix format X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0627da0027dfe7be8532718044d894e260e5f6a1;p=akkoma mix format --- 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 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft 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 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do ) {pinned?, pinned_at} = pin_data(object, user) + %{ id: to_string(activity.id), uri: object.data["id"],