akkoma/lib/pleroma/web/activity_pub/object_validators
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
..
accept_reject_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
add_remove_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
announce_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
answer_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
article_note_page_validator.ex Object: remove context_id field 2022-08-06 02:47:33 +01:00
attachment_validator.ex maintenance: dependency upgrade (#81) 2022-07-18 00:56:35 +00:00
audio_video_validator.ex maintenance: dependency upgrade (#81) 2022-07-18 00:56:35 +00:00
block_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
common_fields.ex Quote posting (#113) 2022-07-25 16:30:06 +00:00
common_fixes.ex Object: remove context_id field 2022-08-06 02:47:33 +01:00
common_validations.ex Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
create_generic_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
delete_validator.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
emoji_react_validator.ex Fix emoji qualification (#124) 2022-07-28 12:02:36 +00:00
event_validator.ex Object: remove context_id field 2022-08-06 02:47:33 +01:00
follow_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
like_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
question_options_validator.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
question_validator.ex Object: remove context_id field 2022-08-06 02:47:33 +01:00
tag_validator.ex just drop unknown tags 2022-01-07 20:14:04 +00:00
undo_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00
update_validator.ex object_validators: Group common fields in CommonValidations 2021-10-10 02:50:06 +02:00