akkoma/test/pleroma/web/activity_pub
Hélène 662a9e7518 Object: remove context_id field
30 to 70% of the objects in the object table are simple JSON objects
containing a single field, 'id', being the context's ID. The reason for
the creation of an object per context seems to be an old relic from the
StatusNet era, and has only been used nowadays as an helper for threads
in Pleroma-FE via the `pleroma.conversation_id` field in status views.
An object per context was created, and its numerical ID (table column)
was used and stored as 'context_id' in the object and activity along
with the full 'context' URI/string.

This commit removes this field and stops creation of objects for each
context, which will also allow incoming activities to use activity IDs
as contexts, something which was not possible before, or would have been
very broken under most circumstances.

The `pleroma.conversation_id` field has been reimplemented in a way to
maintain backwards-compatibility by calculating a CRC32 of the full
context URI/string in the object, instead of relying on the row ID for
the created context object.
2022-08-06 02:47:33 +01:00
..
mrf Quote posting (#113) 2022-07-25 16:30:06 +00:00
object_validators allow small/center tags in misskeymarkdown (#132) 2022-08-01 12:46:52 +00:00
side_effects Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
transmogrifier Object: remove context_id field 2022-08-06 02:47:33 +01:00
views purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
activity_pub_controller_test.exs local-only-fixed (#138) 2022-08-02 14:46:46 +00:00
activity_pub_test.exs Object: remove context_id field 2022-08-06 02:47:33 +01:00
builder_test.exs Quote posting (#113) 2022-07-25 16:30:06 +00:00
mrf_test.exs Make quarentine work with list of tuples instead of strings 2021-08-06 07:59:52 +02:00
pipeline_test.exs Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher_test.exs remove unneeded function 2022-08-03 11:50:48 +01:00
relay_test.exs ObjectValidators.{Announce,EmojiReact,Like}: Fix context, actor & addressing 2021-06-09 04:23:02 +02:00
side_effects_test.exs purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
transmogrifier_test.exs Object: remove context_id field 2022-08-06 02:47:33 +01:00
utils_test.exs Object: remove context_id field 2022-08-06 02:47:33 +01:00
visibility_test.exs mix format 2022-06-22 17:20:55 +01:00