Commit Graph

31 Commits (5ebc1af91e96ca065ea55f20e94de5d874a442c8)

Author SHA1 Message Date
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
Daniel Supernault a6117a2407
Fix reblog handling 4 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
Daniel Supernault 33dce75f2c
Pint app/ 4 weeks ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
1 month ago
Your Name daea5da055 fix 8 months ago
Shlee ec3e723a63
Update HashtagInsertFanoutPipeline.php 9 months ago
Shlee ce8836fa3b
Update FeedInsertPipeline.php 9 months ago
Shlee e3de5c8596
Update FeedInsertRemotePipeline.php 9 months ago
Daniel Supernault 53742fa699
Lint 9 months ago
Your Name f23e970587 HomeFeedPipeline defensive checks 11 months ago
Daniel Supernault 29aa87c282
Update HomeFeedPipeline jobs, add domain block filtering 3 years ago
Daniel Supernault 54adbeb059
Update FeedRemoveDomainPipeline, make batchable 3 years ago
Daniel Supernault 819e7d3b32
Add FeedRemoveDomainPipeline 3 years ago
Daniel Supernault 041c01359b
Update HomeFeedPipeline, fix StatusService validation 3 years ago
Daniel Supernault 957bbbc2bd
Update FeedInsertPipeline 3 years ago
Daniel Supernault 8548294c7a
Update HomeFeedPipeline, observe mutes/blocks during fanout 3 years ago
Daniel Supernault f105f4e8f6
Update HomeFeedPipeline, fix tag filtering 3 years ago
Daniel Supernault 3e96fa8a56
Updaet HashtagUnfollowPipeline, fix typo 3 years ago
Daniel Supernault 19233cc976
Update HashtagFollowObserver 3 years ago
Daniel Supernault c6a6b3ae30
Update Experimental Home Feed, fix remote posts, shares and reblogs 3 years ago
Daniel Supernault c8092116e5
Update HashtagUnfollowPipeline 3 years ago
Daniel Supernault d8fbb4ff32
Update HashtagUnfollowPipeline 3 years ago
Daniel Supernault cf50618696
Update FeedInsertPipeline, self fanout, oof 3 years ago
Daniel Supernault 015b1b80b4
Update hashtag following 3 years ago
Daniel Supernault 43443503a1
Update FeedFollowPipeline, use more efficient query 3 years ago
Daniel Supernault 73cb8b43b3
Update HomeFeedPipeline, add follow/unfollow 3 years ago
Daniel Supernault ce63c4997b
Add Feed fanout 3 years ago
Daniel Supernault df1f98d5f7
Add FeedInsertPipeline job 3 years ago
Daniel Supernault 6aa65b9a21
Add FeedWarmCachePipeline 3 years ago
Daniel Supernault 448c061070
Update HomeFeedPipeline, add hashtag jobs 3 years ago