mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Apply suggestion to lib/pleroma/web/activity_pub/transmogrifier.ex
This commit is contained in:
parent
29ab1d9f8d
commit
f6835333be
1 changed files with 1 additions and 2 deletions
|
@ -615,8 +615,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
with {_, {:ok, cast_data_sym}} <-
|
with {_, {:ok, cast_data_sym}} <-
|
||||||
{:casting_data,
|
{:casting_data,
|
||||||
data |> LikeValidator.cast_data() |> Ecto.Changeset.apply_action(:insert)},
|
data |> LikeValidator.cast_data() |> Ecto.Changeset.apply_action(:insert)},
|
||||||
{_, cast_data} <-
|
cast_data = ObjectValidator.stringify_keys(Map.from_struct(cast_data_sym)),
|
||||||
{:stringify_keys, ObjectValidator.stringify_keys(cast_data_sym |> Map.from_struct())},
|
|
||||||
:ok <- ObjectValidator.fetch_actor_and_object(cast_data),
|
:ok <- ObjectValidator.fetch_actor_and_object(cast_data),
|
||||||
{_, {:ok, cast_data}} <- {:maybe_add_context, maybe_add_context_from_object(cast_data)},
|
{_, {:ok, cast_data}} <- {:maybe_add_context, maybe_add_context_from_object(cast_data)},
|
||||||
{_, {:ok, cast_data}} <-
|
{_, {:ok, cast_data}} <-
|
||||||
|
|
Loading…
Reference in a new issue