summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-10 13:47:20 +0000
committerlain <lain@soykaf.club>2020-08-10 13:47:20 +0000
commit353f3466d638efc012cdf5688d66edac20431da8 (patch)
tree97caecf7c1df615cca02efcf77e5e2ceb071f86e
parent73af60d02f25f1585d3e5168d99306b70355c15c (diff)
parent11fc90744c89097969a94d2accaa8f97cb1bbd7d (diff)
Merge branch 'remove-unreachable-code' into 'develop'
Transmogrifier: Remove duplicate code. See merge request pleroma/pleroma!2871
-rw-r--r--lib/pleroma/web/activity_pub/transmogrifier.ex10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex
index 7381d4476..2f04cc6ff 100644
--- a/lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/lib/pleroma/web/activity_pub/transmogrifier.ex
@@ -644,16 +644,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
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)
when type in ~w{Like EmojiReact Announce} do
with :ok <- ObjectValidator.fetch_actor_and_object(data),