akkoma/lib/pleroma/web
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 Object: remove context_id field 2022-08-09 20:10:43 +02:00
admin_api Pass in msgctxt for config translation strings 2022-07-14 17:41:33 -04:00
api_spec Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
auth Copyright bump for 2022 2022-02-25 23:11:42 -07:00
channels Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api Object: remove context_id field 2022-08-09 20:10:43 +02:00
fallback Copyright bump for 2022 2022-02-25 23:11:42 -07:00
federator Copyright bump for 2022 2022-02-25 23:11:42 -07:00
feed Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop' 2022-03-20 18:14:37 +00:00
mailer Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mastodon_api Object: remove context_id field 2022-08-09 20:10:43 +02:00
media_proxy Copyright bump for 2022 2022-02-25 23:11:42 -07:00
metadata Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mongoose_im Copyright bump for 2022 2022-02-25 23:11:42 -07:00
nodeinfo Copyright bump for 2022 2022-02-25 23:11:42 -07:00
o_auth Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop' 2022-03-20 18:14:37 +00:00
o_status Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pleroma_api Copyright bump for 2022 2022-02-25 23:11:42 -07:00
plugs Skip cache when /objects or /activities is authenticated 2022-05-06 10:23:26 +02:00
preload/providers Copyright bump for 2022 2022-02-25 23:11:42 -07:00
push Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rich_media Copyright bump for 2022 2022-02-25 23:11:42 -07:00
static_fe Document way to do notice compatibility routes with Nginx reverse-proxy instead 2022-07-16 23:44:37 -06:00
templates Make mail and mailer translatable 2022-03-01 19:17:11 -05:00
twitter_api Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
utils Copyright bump for 2022 2022-02-25 23:11:42 -07:00
views Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop' 2022-03-20 18:14:37 +00:00
web_finger Copyright bump for 2022 2022-02-25 23:11:42 -07:00
api_spec.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
controller_helper.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
embed_controller.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
endpoint.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
federator.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
gettext.ex Fix incorrect fallback when English is set to first language 2022-04-17 22:39:52 -04:00
instance_document.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
manifest_controller.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
media_proxy.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
metadata.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
o_auth.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
plug.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
preload.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
push.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rel_me.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
router.ex Merge branch 'develop' into 'from/develop/tusooa/emit-move' 2022-07-31 21:32:49 +00:00
shout_channel.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
streamer.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
translation_helpers.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
uploader_controller.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web_finger.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
xml.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00