aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api/views
AgeCommit message (Collapse)Author
2022-09-04Merge branch 'fix/federation-context-issues' into 'develop'tusooa
Fix reply context fixing (Pleroma replies to Misskey threads) and removal of context objects See merge request pleroma/pleroma!3717
2022-09-03Merge branch 'from/upstream-develop/tusooa/edits' into 'develop'Haelwenn
Editing Closes #1429, #2859, and #2288 See merge request pleroma/pleroma!3678
2022-08-20Expose availability of GET /main/ostatus via instanceTusooa Zhu
2022-08-10StatusView: implement pleroma.context fieldHélène
This field replaces the now deprecated conversation_id field, and now exposes the ActivityPub object `context` directly via the MastoAPI instead of relying on StatusNet-era data concepts.
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-09CommonFields: remove context_idHélène
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-07-23Merge branch 'mute-expiration' into 'develop'tusooa
MastoAPI: Show mutes expiration date See merge request pleroma/pleroma!3682
2022-07-13Merge branch 'short-description' into 'develop'tusooa
Add short_description instance field Closes #2865 See merge request pleroma/pleroma!3651
2022-07-03Merge branch 'develop' into 'from/upstream-develop/tusooa/edits'Tusooa Zhu
# Conflicts: # lib/pleroma/constants.ex
2022-06-25Unify the logic of updating objectsTusooa Zhu
2022-06-21Add editing to featuresTusooa Zhu
2022-06-16Store mutes expiration datemarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-11Show original status at the first of historyTusooa Zhu
2022-06-11Workaround with_index does not support function in Elixir 1.9Tusooa Zhu
2022-06-09Fix incorrectly cached content after editingTusooa Zhu
2022-06-08Return the corresponding object id in attachment viewTusooa Zhu
2022-06-05Return update notification in mastodon apiTusooa Zhu
2022-06-04Expose content type of status sourcesTusooa Zhu
2022-06-03Show edited_at in MastodonAPI/showTusooa Zhu
2022-05-30Implement viewing sourceTusooa Zhu
2022-05-29Implement mastodon api for showing edit historyTusooa Zhu
2022-03-29Add short_description fieldmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-08Implement announcement read relationshipsTusooa Zhu
2022-02-25Copyright bump for 2022Sean King
2022-02-06Max media attachment countmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-25AccountView: Add test for show_birthdaymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-25Fix show_birthdaymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23Birthdays: hide_birthday -> show_birthdaymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-22Merge remote-tracking branch 'origin/develop' into birth-datesAlex Gleason
2022-01-22Birthdays: birth_date --> birthdayAlex Gleason
2022-01-19Update changelogmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-18Birth dates: Add testsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-18Format code, expose instance configuration related to birth datesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-18Birth dates, birthday reminders API, allow instance admins to require ↵marcin mikołajczak
minimum age Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-14Add blockers_visible to features list when it's enabledNEETzsche
2021-12-28wipmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-27API: show info about privileged staff in instance metadataAlibek Omarov
2021-12-26MastoAPI: Profile directorymarcin mikołajczak
2021-12-25Merge branch 'account-notes' into 'develop'Alex Gleason
MastoAPI: Add user notes on accounts See merge request pleroma/pleroma!3540
2021-12-25Merge branch 'account-subscriptions' into 'develop'Alex Gleason
MastoAPI: accept notify param in follow request See merge request pleroma/pleroma!3555
2021-12-19Merge branch 'mkljczk-develop-patch-64464' into 'develop'Alex Gleason
Add "exposable_reactions" to features, if showing reactions See merge request pleroma/pleroma!3523
2021-12-19Merge branch 'v2-suggestions' into 'develop'Alex Gleason
V2 suggestions See merge request pleroma/pleroma!3547
2021-12-06Add 'notifying' to relationship for compatibility with Mastodonmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-11-29Account endorsementsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-11-26v2 Suggestions: return `is_suggested` through the APIAlex Gleason
2021-11-26Instance: add v2_suggestions featureAlex Gleason
2021-11-26v2 Suggestions: rudimentary API responseAlex Gleason
2021-11-21MastoAPI: Add user notes on accountsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-09-09Add "exposable_reactions" to features, if showing reactionsmarcin mikołajczak