fetcher: Remove fix_object call for Question activities
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 25 Aug 2020 00:21:19 +0000 (02:21 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 1 Sep 2020 06:35:00 +0000 (08:35 +0200)
lib/pleroma/object/fetcher.ex

index 6fdbc8efd175006f73d3bda0a2a8e180a5f06d21..d26c5adf5795f153c853f57448afc99d08939c75 100644 (file)
@@ -36,8 +36,7 @@ defmodule Pleroma.Object.Fetcher do
   defp reinject_object(%Object{data: %{"type" => "Question"}} = object, new_data) do
     Logger.debug("Reinjecting object #{new_data["id"]}")
 
-    with new_data <- Transmogrifier.fix_object(new_data),
-         data <- maybe_reinject_internal_fields(object, new_data),
+    with data <- maybe_reinject_internal_fields(object, new_data),
          {:ok, data, _} <- ObjectValidator.validate(data, %{}),
          changeset <- Object.change(object, %{data: data}),
          changeset <- touch_changeset(changeset),