akkoma/lib/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
..
activity_pub Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mrf StealEmojiPolicy: fix String rejected_shortcodes 2022-05-18 21:25:10 +02:00
object_validator Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object_validators Object: remove context_id field 2022-08-09 20:10:43 +02:00
side_effects Copyright bump for 2022 2022-02-25 23:11:42 -07:00
views Copyright bump for 2022 2022-02-25 23:11:42 -07:00
activity_pub.ex Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
activity_pub_controller.ex Skip cache when /objects or /activities is authenticated 2022-05-06 10:23:26 +02:00
builder.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
internal_fetch_actor.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mrf.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object_validator.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pipeline.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
publisher.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
relay.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
side_effects.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
transmogrifier.ex Transmogrifier: Use validating regex for "mediaType" 2022-03-17 22:37:26 +01:00
utils.ex Object: remove context_id field 2022-08-09 20:10:43 +02:00
visibility.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00