akkoma/lib/pleroma/web/mastodon_api/views
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
..
account_view.ex Store mutes expiration date 2022-06-16 20:38:37 +02:00
announcement_view.ex Implement announcement read relationships 2022-03-08 13:09:49 -05:00
app_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
conversation_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
custom_emoji_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
filter_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
follow_request_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
instance_view.ex Add short_description field 2022-03-29 14:04:27 +02:00
list_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
marker_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
media_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
notification_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
poll_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
report_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
scheduled_activity_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
status_view.ex Object: remove context_id field 2022-08-09 20:10:43 +02:00
subscription_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
suggestion_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
timeline_view.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00