common_fixes: Force inserting context and context_id

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-08-25 02:18:33 +02:00
parent a142da3e4f
commit b960cede9a
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -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