aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/web/common_api
AgeCommit message (Collapse)Author
2022-08-09StatusView: clear MSB on calculated conversation_idHélène
This field seems to be a left-over from the StatusNet era. If your application uses `pleroma.conversation_id`: this field is deprecated. It is currently stubbed instead by doing a CRC32 of the context, and clearing the MSB to avoid overflow exceptions with signed integers on the different clients using this field (Java/Kotlin code, mostly; see Husky and probably other mobile clients.) This should be removed in a future version of Pleroma. Pleroma-FE currently depends on this field, as well.
2022-08-09Object: remove context_id fieldHélène
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-02-25Copyright bump for 2022Sean King
2022-02-02Fix tests matching on "warn"Haelwenn (lanodan) Monnier
Moving it to "warning" would break tests on 1.12.x
2021-10-06CI: Bump lint stage to elixir-1.12Haelwenn (lanodan) Monnier
Elixir 1.12 changed formatting rules, this allows to avoid having to rollback to run `mix format`
2021-08-14CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1Alex Gleason
2021-04-30Merge remote-tracking branch 'upstream/develop' into earmarkAlex Gleason
2021-04-30Fix failing remote mentions test, valid TLDsAlex Gleason
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2020-12-28Revert "Merge branch 'features/hashtag-column' into 'develop'"Haelwenn
This reverts merge request !2824
2020-12-22Insert text representation of hashtags into object["hashtags"]Haelwenn (lanodan) Monnier
Includes a new mix task: pleroma.database fill_old_hashtags
2020-12-11Upgrade linkify, test URL issues, fixes #2026 #1942Alex Gleason
2020-12-11Refactor Earmark code, fix testsAlex Gleason
2020-12-11Remove some N/A testsAlex Gleason
2020-12-11Upgrade Earmark to v1.4.10Alex Gleason
2020-10-15Add local-only statusesEgor Kislitsyn
2020-10-13tests consistencyAlexander Strizhakov