spc-pleroma/test/pleroma/web/activity_pub
Hélène f3e061c964
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-09 20:10:43 +02:00
..
mrf StealEmojiPolicy: fix String rejected_shortcodes 2022-05-18 21:25:10 +02:00
object_validators Add test for broken owncast federation 2022-07-22 20:30:45 +02:00
side_effects Copyright bump for 2022 2022-02-25 23:11:42 -07:00
transmogrifier Object: remove context_id field 2022-08-09 20:10:43 +02:00
views Copyright bump for 2022 2022-02-25 23:11:42 -07:00
activity_pub_controller_test.exs Skip cache when /objects or /activities is authenticated 2022-05-06 10:23:26 +02:00
activity_pub_test.exs Object: remove context_id field 2022-08-09 20:10:43 +02:00
builder_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mrf_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pipeline_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
publisher_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
relay_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
side_effects_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
transmogrifier_test.exs Object: remove context_id field 2022-08-09 20:10:43 +02:00
utils_test.exs Object: remove context_id field 2022-08-09 20:10:43 +02:00
visibility_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00