Commit Graph

35 Commits (dev)

Author SHA1 Message Date
Daniel Supernault 7808d1c4a9
Refactor DirectMessageController@composeMutuals endpoint 16 hours ago
Daniel Supernault c18a76f4da
Update FollowerService, change mutuals algorithm 17 hours ago
Your Name 6beab304a0 lint 6 days ago
Your Name 99031fa6bc ReturnTypeFromReturnDirectArrayRector 6 days ago
Your Name 0dbd78ca8e Lint 6 days ago
Your Name 5ebc1af91e BATCH 1 6 days ago
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
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
4 weeks ago
Shlee 2b50576336
Update FollowerService.php 7 months ago
Daniel Supernault 86af73455f
Update DirectMessageController, add mutuals endpoint 1 year ago
Daniel Supernault 991b3e5792
Update FollowerService 2 years ago
Daniel Supernault 1664a5bc52
Update FollowerService, add $silent param to remove method to more efficently purge relationships 3 years ago
Daniel Supernault d3f032b2ec
Update FollowerService, add quickCheck to follows method for non cold-boot checks 3 years ago
Daniel Supernault 33dbbe467d
Add Mutual Followers API endpoint 3 years ago
Daniel Supernault de2b5ba4e9
Update FollowerService, reduce localFollowerIds ttl 3 years ago
Daniel Supernault 20a560bfd1
Update FollowerService, add localFollowerIds method 3 years ago
Daniel Supernault 347e4f59a3
Update FollowerService, add forget method to RelationshipService call to reduce load when mass purging 3 years ago
Daniel Supernault 6153b620bf
Update FollowPipeline, fix followers_count and following_count counters 4 years ago
Daniel Supernault e0c3dae324
Update profile audience to filter blocked instances 4 years ago
Daniel Supernault 3328b367fd
Add optional home feed caching 4 years ago
Daniel Supernault 81f7d17263
Update FollowerService, improve cache invalidation 4 years ago
Daniel Supernault f46b01af51
Update FollowerService, use redis sorted sets for following relations 4 years ago
Daniel Supernault 356cc2774a
Update FollowerService, use redis sorted sets for follower relations 4 years ago
Daniel Supernault 4ecbd7cbe4
Update FollowerService 4 years ago
Daniel Supernault 19d140b020
Update FollowerService 5 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. 5 years ago
Daniel Supernault 0d8d6bc71e
Update FollowerService 5 years ago
Daniel Supernault ad2db4aea7
Update FollowerService 5 years ago
Daniel Supernault 22257cc2a7
Update FollowerService, cache audience 5 years ago
Daniel Supernault c8824d1b51
Update FollowerService 5 years ago
Shlee cae0a52e89
Update FollowerService.php 7 years ago
Daniel Supernault c369882b48
Update Redis namespace 7 years ago
Daniel Supernault 96a6c063f2
Update FollowerService 7 years ago
Daniel Supernault e45a3c4b93
Add FollowerService 8 years ago