Commit Graph

717 Commits (stable-4.4)

Author SHA1 Message Date
Claire ad0a28a8bf
Add `grouped_types` parameter to allow clients to restrict which notifications types get grouped (#31594) 11 months ago
Claire 98237207e6
Fix unnecessary “next” link when API returns fewer notification requests than requested (#31541) 11 months ago
Claire 53c183f899
Reload notifications when accepted notifications are merged (streaming only) (#31419) 11 months ago
Claire cbdd8edf68
Revamp notification policy options (#31343) 12 months ago
Claire 670e4655d1
Change dismissing a notification to clear existing filtered notifications for that account (#31329) 12 months ago
Claire 438dac99d6
Add option to request partial accounts in grouped notifications API (#31299) 12 months ago
Emelia Smith f55099fea3
Increase maximum page size for Admin Domain Management APIs (#31253) 12 months ago
Claire da5b45a573
Add endpoints to accept and dismiss multiple notification requests at once (#31242) 12 months ago
Claire 549ab089ee
Change grouped notifications API shape (take 2) (#31214) 12 months ago
Claire 598ae4f2da
Add endpoints for unread notifications count (#31191) 12 months ago
Matt Jankowski 0397df9bef
Resolve `TODO` in `api/v1/admin/domain_*` controllers (#31067) 1 year ago
Renaud Chaput f587ff643f
Grouped Notifications UI (#30440)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Emelia Smith aa88aca0ad
Add optional OAuth application to reports (#30539) 1 year ago
David Roetzel 35a437a03f
Destroy `NotificationRequest`s that are dismissed (#31008) 1 year ago
Daniel M Brasil 3875bd138d
Fix HTTP 500 in `/api/v1/polls/:id/votes` (#25598) 1 year ago
Claire 502cf75b16
Merge pull request from GHSA-58x8-3qxw-6hm7
* Fix insufficient permission checking for public timeline endpoints

Note that this changes unauthenticated access failure code from 401 to 422

* Add more tests for public timelines

* Require user token in `/api/v1/statuses/:id/translate` and `/api/v1/scheduled_statuses`
1 year ago
Claire bb2d77b4a0
Change `/api/v2_alpha/notifications` to only return historical data in pages (#30781) 1 year ago
Matt Jankowski 978601a0ae
Extract permitted params constant in v1/admin/tags (#30652) 1 year ago
Eugen Rochko a2505e8611
Add timeline of public posts about a trending link to REST API (#30381) 1 year ago
Emelia Smith e02d23b549
Change `read:me` scope to `profile` scope (#30357)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Claire 974335e414
Add experimental server-side notification grouping (#29889) 1 year ago
Matt Jankowski 469de923aa
Update `current_user` override mode description in controllers (#30515) 1 year ago
Matt Jankowski 85d9053b36
Move `pagination_params` into `API::BaseController` (#28845) 1 year ago
Claire 36fe8f8566
Change `ids` param to `id` in `/api/v1/statuses` and `/api/v1/accounts` for consistency (#30465) 1 year ago
Eugen Rochko 128987eded
Add support for `fediverse:creator` OpenGraph tag (#30398) 1 year ago
Emelia Smith 2da2a1dae9
Support multiple redirect_uris when creating OAuth 2.0 Applications (#29192) 1 year ago
Matt Jankowski 65e82211cd
Rename `cache_*` methods to `preload_*` in controller concern (#30209) 1 year ago
Claire 2fe1b8d169
Add API to get multiple accounts and statuses (#27871)
Co-authored-by: noellabo <noel.yoshiba@gmail.com>
1 year ago
Claire 8e4fea77e3
Fix race condition in `POST /api/v1/push/subscription` (#30166) 1 year ago
Claire 253ead3aa7
Fix not being able to block a subdomain of an already-blocked domain through the API (#30119) 1 year ago
Emelia Smith 049b159beb
Add read:me OAuth 2.0 scope, allowing more limited access to user data (#29087) 1 year ago
Matt Jankowski 650c548c31
Add `not_featured_by` scope to Tag (#28815) 1 year ago
Matt Jankowski 1d3ecd3fba
Add `API::Pagination` concern (#28826) 1 year ago
Matt Jankowski caad1e2628
Add scope `Status.distributable_visibility` (#29950) 1 year ago
Matt Jankowski 34f293475e
Fix results/query in `api/v1/featured_tags/suggestions` (#29597) 1 year ago
Matt Jankowski b5115850bb
Move repeated `insert_pagination_headers` method to api base class (#29606) 1 year ago
Matt Jankowski f9100743ec
Add `Api::ErrorHandling` concern for api/base controller (#29574) 1 year ago
Matt Jankowski 9754967d5f
Move `pagination_max_id` and `pagination_since_id` into api/base controller (#28844) 1 year ago
Eugen Rochko c10bbf5fe3
Add notification policies and notification requests in web UI (#29433) 1 year ago
Eugen Rochko 50b17f7e10
Add notification policies and notification requests (#29366) 1 year ago
Matt Jankowski eb1b8f69de
Allow pagination `Link` headers on API accounts/statuses when pinned true (#29442) 1 year ago
Matt Jankowski 2f19ddd1fa
Move status serializer error handling to private method (#29031) 1 year ago
Matt Jankowski 93a5b3f9df
Move status serializer chooser to private method (#29030) 1 year ago
Matt Jankowski 4cf07ed78c
Add missing action logging to `api/v1/admin/reports#update` (#29044) 1 year ago
Eugen Rochko 5b1eb09d54
Add annual reports for accounts (#28693) 2 years ago
Matt Jankowski c0e8e457ab
Eager loading fixes for `api/` controllers (#28848) 2 years ago
Matt Jankowski 7ecf7f5403
Move controller->request specs for api/v1/statuses/* (#28818) 2 years ago
Matt Jankowski 329911b0a3
Migrate controller->request spec for api/v1/follow* (#28811) 2 years ago
Matt Jankowski 0b853678a4
Add coverage for `api/v1/peers/search` endpoint and extract controller query to Instance scope (#28796) 2 years ago
Matt Jankowski e72676e83a
Improve `api/v1/markers#create` performance against simultaneous requests (#28718) 2 years ago
Claire d7e13e2483
Fix potential redirection loop of streaming endpoint (#28665) 2 years ago
Claire dfdadb92e8
Add ability to require approval when users sign up using specific email domains (#28468) 2 years ago
Claire 1184887b01
Fix streaming API redirection ignoring the port of `streaming_api_base_url` (#28558) 2 years ago
Eugen Rochko b5ac61b2c5
Change algorithm of follow recommendations (#28314)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Matt Jankowski c28976d89e
Handle negative offset param in `api/v2/search` (#28282) 2 years ago
Claire 7d9b209fe8
Fix call to inefficient `delete_matched` cache method in domain blocks (#28374) 2 years ago
Matt Jankowski 0e5b8fc46b
Fix `Style/RedundantReturn` cop (#28391) 2 years ago
Matt Jankowski 3bc437b99a
Fix `Style/RedundantParentheses` cop (#28176) 2 years ago
Matt Jankowski d83d01eb1e
Fix `Lint/RedundantSafeNavigation` cop (#28172) 2 years ago
Claire 963354978a
Add `Account#unavailable?` and `Account#permanently_unavailable?` aliases (#28053) 2 years ago
Matt Jankowski 1f1c75bba5
File cleanup/organization in `controllers/concerns` (#27846) 2 years ago
Matt Jankowski e7c340a634
Spec coverage for missing `q` param and error conditions in `api/v2/search` controller (#27842) 2 years ago
Kevin Bongart 7877fcd83c
Deduplicate IDs in relationships and familiar_followers APIs (#27982) 2 years ago
Matt Jankowski 4be12791e6
Remove `default_scope` from `StatusEdit` class (#28042) 2 years ago
Matt Jankowski 9742bccbe7
Add coverage for `api/v2/media` endpoint (#28027) 2 years ago
Matt Jankowski 876f5b1d12
Convert `/instances/*` controller specs to request specs (#27988)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Matt Jankowski fe58ac8d9f
Improve spec coverage for `api/web/push_subscriptions` controller (#27858)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Eugen Rochko d67bd44ca1
Add profile setup to onboarding in web UI (#27829) 2 years ago
Matt Jankowski 7e1a77ea51
Add base class for `api/v1/timelines/*` controllers (#27840) 2 years ago
Matt Jankowski d562fb8459
Specs for minimal CSP policy in `Api::` controllers (#27845) 2 years ago
Matt Jankowski 1f8173ac5a
Extract private methods in api/v1/instances/domain_blocks (#27844) 2 years ago
Matt Jankowski 0945e25b8f
Add `Api::V1::Statuses::BaseController` base controller class (#27794) 2 years ago
Claire 07a4059901
Add support for invite codes in the registration API (#27805) 2 years ago
Eugen Rochko 0d14fcebae
Change link previews to keep original URL from the status (#27312) 2 years ago
Matt Jankowski ac69f90098
Add `Api::V1::Instances::BaseController` base controller class (#27797) 2 years ago
Claire c451bbe249
Allow viewing and severing relationships with suspended accounts (#27667) 2 years ago
Emelia Smith 7c3fea7275
Feature: Allow token introspection without read scope (#27142) 2 years ago
Robert R George 20666482ef
Added admin api for managing tags (#26872) 2 years ago
Claire 33c8708a1a
Change `GET /api/v1/directory` to use database replica rather than primary (#26856) 2 years ago
Claire 548c032dbb
Improve interaction modal error handling (#26795) 2 years ago
Daniel M Brasil ccca542db1
Fix `/api/v1/timelines/tag/:hashtag` allowing for unauthenticated access when public preview is disabled (#26237) 2 years ago
Lukas Martini a7d96e6aff
Improve error messages when DeepL quota is exceeded (#26704) 2 years ago
jsgoldstein 30c191aaa0
Add new public status index (#26344)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Claire 191d302b7f
Refactor `Api::V1::ProfilesController` into two separate controllers (#26573) 2 years ago
Daniel M Brasil d24a87ce4f
Add ability to delete avatar or header picture via the API (#25124)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Daniel M Brasil 3a4d3e9d4b
Add `GET /api/v1/instance/languages` to REST API (#24443)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Emelia Smith e258b4cb64
Refactor: replace whitelist_mode mentions with limited_federation_mode (#26252) 2 years ago
Claire 6c39125761
Change /api/v1/peers/search to be case-insensitive when using Elasticsearch (#26268) 2 years ago
Claire b4e739ff0f
Change interaction modal in web UI (#26075)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2 years ago
Christian Schmidt 4c18928a93
Wrong count in response when removing favourite/reblog (#24365)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Claire 943f27f437
Remove unfollowed hashtag posts from home feed (#26028) 2 years ago
Claire 41f65edb21
Fix embed dropdown menu item for unauthenticated users (#25964) 2 years ago
Eugen Rochko 8d0c69529a
Change markers API to use a replica (#25851) 2 years ago
Eugen Rochko fdc3ff7c2d
Change notifications API to use a replica (#25874) 2 years ago
Matt Jankowski 2e1391fdd2
Fix `Naming/MemoizedInstanceVariableName` cop (#25928) 2 years ago
Claire c27b82a437
Add `forward_to_domains` parameter to `POST /api/v1/reports` (#25866) 2 years ago
Kurtis Rainbolt-Greene e4cfe4b3db
First pass at multi-database for read replica using Rails native adapter (#25693)
Co-authored-by: emilweth <7402764+emilweth@users.noreply.github.com>
2 years ago
Daniel M Brasil 383c00819c
Fix `/api/v2/search` not working with following query param (#25681) 2 years ago
Daniel M Brasil 4fe2d7cb59
Fix HTTP 500 in `/api/v1/emails/check_confirmation` (#25595) 2 years ago
Matt Jankowski 683ba5ecb1
Fix rails `rewhere` deprecation warning in directories api controller (#25625) 2 years ago