Commit Graph

7 Commits (dev)

Author SHA1 Message Date
daniel 0158941fb6
API improvements + test fixes (#5925)
* migrate PHPUnit configuration

* replace @test annotations with #[Test] attributes, and add it where it was missing

* remove test prefix from test method names

* add PHPUnit cache to .gitignore

* Update ApiV1Controller, fix notifications favourited/reblogged/bookmarked state. Fixes #5901

* Update ApiV1Controller, fix relationship fields. Fixes #5900

* Update instance config, return proper matrix limits. Fixes #4780

* Update SearchApiV2Service, fix offset bug. Fixes #5875

* Update ApiV1Controller, add better direct error message. Fixes #4789

* Update changelog

---------

Co-authored-by: Daniel Simon <daniel.simon.dev@proton.me>
3 weeks ago
Daniel Supernault 347e4f59a3
Update FollowerService, add forget method to RelationshipService call to reduce load when mass purging 2 years ago
Daniel Supernault 992d910b9c
Added `following_since` attribute to `/api/v1/accounts/relationships` endpoint when `_pe=1` (pixelfed entity) parameter is present 2 years ago
Daniel Supernault e0c3dae324
Update profile audience to filter blocked instances 2 years ago
Daniel Supernault 356cc2774a
Update FollowerService, use redis sorted sets for follower relations 2 years ago
Daniel Supernault 4ecbd7cbe4
Update FollowerService 3 years ago
Daniel Supernault 80d9b9399a
Refactor following & relationship logic. Replace FollowerObserver with FollowerService and added RelationshipService to cache results. Removed NotificationTransformer includes and replaced with cached services to improve performance and reduce database queries. 4 years ago