forked from AkkomaGang/akkoma
Hélène
f3e061c964
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. |
||
---|---|---|
.. | ||
activity_pub | ||
admin_api | ||
api_spec | ||
auth | ||
common_api | ||
endpoint | ||
feed | ||
mastodon_api | ||
media_proxy | ||
metadata | ||
o_auth | ||
o_status | ||
pleroma_api | ||
plugs | ||
preload/providers | ||
push | ||
rich_media | ||
static_fe | ||
twitter_api | ||
views | ||
web_finger | ||
common_api_test.exs | ||
fallback_test.exs | ||
federator_test.exs | ||
gettext_test.exs | ||
manifest_controller_test.exs | ||
media_proxy_test.exs | ||
mongoose_im_controller_test.exs | ||
node_info_test.exs | ||
rel_me_test.exs | ||
shout_channel_test.exs | ||
streamer_test.exs | ||
uploader_controller_test.exs | ||
web_finger_test.exs |