forked from AkkomaGang/akkoma
Merge branch 'remove-unreachable-code' into 'develop'
Transmogrifier: Remove duplicate code. See merge request pleroma/pleroma!2871
This commit is contained in:
commit
353f3466d6
1 changed files with 0 additions and 10 deletions
|
@ -644,16 +644,6 @@ def handle_incoming(
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_incoming(
|
|
||||||
%{"type" => "Create", "object" => %{"type" => "ChatMessage"}} = data,
|
|
||||||
_options
|
|
||||||
) do
|
|
||||||
with {:ok, %User{}} <- ObjectValidator.fetch_actor(data),
|
|
||||||
{:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
|
|
||||||
{:ok, activity}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def handle_incoming(%{"type" => type} = data, _options)
|
def handle_incoming(%{"type" => type} = data, _options)
|
||||||
when type in ~w{Like EmojiReact Announce} do
|
when type in ~w{Like EmojiReact Announce} do
|
||||||
with :ok <- ObjectValidator.fetch_actor_and_object(data),
|
with :ok <- ObjectValidator.fetch_actor_and_object(data),
|
||||||
|
|
Loading…
Reference in a new issue