Transmogrifier: fix reply context fixing
authorHélène <pleroma-dev@helene.moe>
Tue, 2 Aug 2022 15:30:36 +0000 (17:30 +0200)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 4 Aug 2022 11:57:48 +0000 (12:57 +0100)
commitc1e15ff6f8d279f4d44e834e809ac036e7a5cc5e
tree66849056d0e63f6a02c07680f2b9e24586874666
parent9df732c42b5469ddfcf2990c8cc3433865df5871
Transmogrifier: 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.
lib/pleroma/web/activity_pub/transmogrifier.ex
test/fixtures/create-pleroma-reply-to-misskey-thread.json [new file with mode: 0644]
test/fixtures/tesla_mock/helene@p.helene.moe.json [new file with mode: 0644]
test/fixtures/tesla_mock/mametsuko@mk.absturztau.be.json [new file with mode: 0644]
test/fixtures/tesla_mock/mk.absturztau.be-93e7nm8wqg.json [new file with mode: 0644]
test/fixtures/tesla_mock/p.helene.moe-AM7S6vZQmL6pI9TgPY.json [new file with mode: 0644]
test/pleroma/web/activity_pub/transmogrifier_test.exs
test/support/http_request_mock.ex