akkoma/lib/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
..
activity_pub Remove deps from Streaming/Persisting behaviors 2021-06-01 13:55:07 -05:00
mrf Quote posting (#113) 2022-07-25 16:30:06 +00:00
object_validator Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
object_validators Object: remove context_id field 2022-08-06 02:47:33 +01:00
side_effects Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
views purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
activity_pub.ex don't persist undo of follows (#149) 2022-08-05 13:28:56 +00:00
activity_pub_controller.ex cherry-pick security from upstream 2022-06-22 16:25:05 +01:00
builder.ex Quote posting (#113) 2022-07-25 16:30:06 +00:00
internal_fetch_actor.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mrf.ex CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
object_validator.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
pipeline.ex Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher.ex Merge mrf_simple-reject with quarantine (#137) 2022-08-02 14:19:24 +00:00
relay.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
side_effects.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
transmogrifier.ex Transmogrifier: fix reply context fixing 2022-08-04 12:57:48 +01:00
utils.ex Object: remove context_id field 2022-08-06 02:47:33 +01:00
visibility.ex local-only-fixed (#138) 2022-08-02 14:46:46 +00:00