You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Http/Controllers/Api
Your Name 667f6e2fc9 Extract following-ids lookup into FollowerService::getFollowingIds
The Cache::remember('profile:following:'.$pid, ...) block that plucks
following_id and appends the caller's own id was copy-pasted across four
call sites, with inconsistent TTLs (1440 minutes vs 1209600 seconds).

Add FollowerService::getFollowingIds($pid), which owns the cache key that
add()/remove() already invalidate, and use it from InternalApiController,
PublicApiController, ApiV1Controller and HashtagUnfollowPipeline. Removes
the now-unused Follower/Cache imports left behind.

Adds a test covering the followed-ids-plus-self result and the
follows-nobody case.
3 weeks ago
..
V1 refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
AdminApiController.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ApiController.php refactor: add return type declarations to controller methods 4 weeks ago
ApiV1Controller.php Extract following-ids lookup into FollowerService::getFollowingIds 3 weeks ago
ApiV1Dot1Controller.php Update Report endpoint, add support for optional message 3 weeks ago
ApiV2Controller.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
BaseApiController.php Fix silent failure in avatar upload endpoints 3 weeks ago