akkoma/lib/pleroma/web
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 Object: remove context_id field 2022-08-06 02:47:33 +01:00
admin_api backend-i18n (#121) 2022-07-27 21:56:59 +00:00
api_spec Quote posting (#113) 2022-07-25 16:30:06 +00:00
auth Prepare for ubuntu22 murdering openssl (#120) 2022-07-27 21:48:13 +00:00
common_api Object: remove context_id field 2022-08-06 02:47:33 +01:00
fallback Add configurable theme color (#53) 2022-07-06 20:00:43 +00:00
federator Remove debug prints 2022-06-25 18:43:19 +01:00
feed maintenance: dependency upgrade (#81) 2022-07-18 00:56:35 +00:00
mailer Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mastodon_api Object: remove context_id field 2022-08-06 02:47:33 +01:00
media_proxy Use uppercase HTTP HEAD method for media preview proxy request (#128) 2022-07-30 21:58:14 +00:00
metadata Add configurable theme color (#53) 2022-07-06 20:00:43 +00:00
mongoose_im Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
nodeinfo expose bubble instances via nodeinfo (#136) 2022-08-02 09:11:22 +00:00
o_auth maintenance: dependency upgrade (#81) 2022-07-18 00:56:35 +00:00
o_status check for local_public? on AP route 2022-06-22 16:35:12 +01:00
pleroma_api purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
plugs /notice signing checks on redirect (#150) 2022-08-05 19:31:32 +00:00
preload/providers Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
push purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
rich_media remove all endpoints marked as deprecated (#91) 2022-07-20 12:00:58 +00:00
static_fe Merge remote-tracking branch 'origin/develop' into notice-routes 2021-12-25 19:57:53 -06:00
templates update mastofe paths (#95) 2022-07-20 20:13:50 +00:00
twitter_api Pass remote follow avatar into media proxy 2022-07-12 15:44:38 -04:00
utils Pleroma.Web.Params --> Pleroma.Web.Utils.Params 2021-06-08 12:50:47 -05:00
views purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
web_finger Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
api_spec.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
common_api.ex Quote posting (#113) 2022-07-25 16:30:06 +00:00
controller_helper.ex Pleroma.Web.Params --> Pleroma.Web.Utils.Params 2021-06-08 12:50:47 -05:00
embed_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
endpoint.ex Remove instrumentors (#98) 2022-07-21 11:32:17 +00:00
federator.ex Allow for embedding object data in publish 2022-06-25 18:41:26 +01:00
gettext.ex Fix incorrect fallback when English is set to first language 2022-06-29 20:47:10 +01:00
instance_document.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
manifest_controller.ex Expose /manifest.json for PWA 2021-11-24 17:50:55 -06:00
masto_fe_controller.ex Revert "Merge branch 'remove/mastofe' into 'develop'" 2022-01-08 21:44:37 +00:00
media_proxy.ex media_proxy: switch from :crypto.hmac to :crypto.mac 2021-06-03 19:11:15 +02:00
metadata.ex Add configurable theme color (#53) 2022-07-06 20:00:43 +00:00
o_auth.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
pipelines.ex Remove precompiled javascript (#55) 2022-07-08 13:03:18 +00:00
plug.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
preload.ex Remove unused Logger 2021-09-01 14:56:48 -05:00
push.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
rel_me.ex Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
router.ex add bubble timeline (#100) 2022-07-22 14:55:38 +00:00
streamer.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
swagger.ex remove anonymous function from plug 2022-07-14 11:17:14 +01:00
translation_helpers.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
uploader_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger.ex Support reaching user@sub.domain.tld at user@domain.tld (#134) 2022-08-02 13:54:22 +00:00
xml.ex respect content-type header in finger request 2021-03-19 18:53:55 +03:00