Use same context for quote posts as the post that's being quoted (#379)
authorilja <akkoma.dev@ilja.space>
Sat, 31 Dec 2022 18:09:27 +0000 (18:09 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Sat, 31 Dec 2022 18:09:27 +0000 (18:09 +0000)
commit745e15468e64991e710467e3809bc62424014a52
tree6429ed50dc0c549c4d2f86240fb5e378d4e47c83
parentb8f280b4b500a20eeb6046dd29e3070696da8977
Use same context for quote posts as the post that's being quoted (#379)

See https://akkoma.dev/AkkomaGang/akkoma/pulls/350#issuecomment-6109

When making quotes through Mast-API, they will now have the same context as the quoted post. This also results in them being showed when fetching the thread. I checked Misskey to see how it's there, and they show the quotes there as well, see e.g. <https://mk.toast.cafe/notes/98u1g0tulg>.

An example from Akkoma:

Co-authored-by: ilja <git@ilja.space>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/379
Reviewed-by: floatingghost <hannah@coffee-and-dreams.uk>
Co-authored-by: ilja <akkoma.dev@ilja.space>
Co-committed-by: ilja <akkoma.dev@ilja.space>
CHANGELOG.md
lib/pleroma/web/common_api/activity_draft.ex
lib/pleroma/web/common_api/utils.ex
test/pleroma/web/mastodon_api/controllers/status_controller_test.exs