mirror of https://github.com/pixelfed/pixelfed
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.
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 | |
|---|---|---|
| .. | ||
| FeedFollowPipeline.php | 4 weeks ago | |
| FeedInsertPipeline.php | 3 weeks ago | |
| FeedInsertRemotePipeline.php | 4 weeks ago | |
| FeedRemoveDomainPipeline.php | 9 months ago | |
| FeedRemovePipeline.php | 9 months ago | |
| FeedRemoveRemotePipeline.php | 9 months ago | |
| FeedUnfollowPipeline.php | 9 months ago | |
| FeedWarmCachePipeline.php | 9 months ago | |
| HashtagInsertFanoutPipeline.php | 4 weeks ago | |
| HashtagRemoveFanoutPipeline.php | 4 weeks ago | |
| HashtagUnfollowPipeline.php | 3 weeks ago | |