From: Haelwenn (lanodan) Monnier Date: Tue, 25 Aug 2020 00:18:33 +0000 (+0200) Subject: common_fixes: Force inserting context and context_id X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b960cede9a3183098ac5eb330fbc4d1c14efc034;p=akkoma common_fixes: Force inserting context and context_id --- diff --git a/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex b/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex index 721749de0..720213d73 100644 --- a/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex +++ b/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex @@ -11,8 +11,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CommonFixes do Utils.create_context(data["context"] || data["conversation"]) data - |> Map.put_new("context", context) - |> Map.put_new("context_id", context_id) + |> Map.put("context", context) + |> Map.put("context_id", context_id) end def fix_attribution(data) do