diff options
author | Hélène <pleroma-dev@helene.moe> | 2022-08-02 17:30:36 +0200 |
---|---|---|
committer | Hélène <pleroma-dev@helene.moe> | 2022-08-10 02:29:38 +0200 |
commit | 3b6784b1de8454ab8c009ac688f6c62039117742 (patch) | |
tree | a1f72d06ef018f701768e7cd4956f80533674ad3 /lib | |
parent | c559c240d1a56f05fc70f69ae6b8c0809026fa2e (diff) | |
download | pleroma-3b6784b1de8454ab8c009ac688f6c62039117742.tar.gz pleroma-3b6784b1de8454ab8c009ac688f6c62039117742.zip |
CreateGenericValidator: fix reply context fixing
Incoming Pleroma replies to a Misskey thread were rejected due to a
broken context fix, which caused them to not be visible until a
non-Pleroma user interacted with the replies.
This fix properly sets the post-fix object context to its parent Create
activity as well, if it was changed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/object_validators/create_generic_validator.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/object_validators/create_generic_validator.ex b/lib/pleroma/web/activity_pub/object_validators/create_generic_validator.ex index c9a621cb1..2395abfd4 100644 --- a/lib/pleroma/web/activity_pub/object_validators/create_generic_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validators/create_generic_validator.ex @@ -75,7 +75,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateGenericValidator do data |> CommonFixes.fix_actor() - |> Map.put_new("context", object["context"]) + |> Map.put("context", object["context"]) |> fix_addressing(object) end |