Commit Graph

14 Commits (dev)

Author SHA1 Message Date
Your Name 32d1c0e7cc add type to function 6 days ago
Your Name c57e5d8ed7 adding type 6 days ago
Your Name 5ebc1af91e BATCH 1 6 days ago
Your Name e4e12fad7c Extract duplicated blocked-id and duplicate-shortcode query patterns
Two query patterns were copy-pasted across several call sites:

- The 'users who blocked me, plus myself' list used to filter profile
  search (UserFilter::whereFilterableId($pid)->pluck('user_id')->push($pid))
  appeared in ComposeController (x2) and DirectMessageController. Extracted
  to UserFilterService::searchExcludedProfileIds(). Note this is the
  inverse of blocks() (who I blocked), so it is a distinct method.

- CustomEmoji duplicate detection (groupBy('shortcode')->havingRaw(
  'count(*) > 1')) appeared three times in AdminController. Extracted to a
  CustomEmoji::duplicateShortcodes() query scope.

Adds tests for both. No behaviour change.
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
Daniel Supernault ecb04f3ab3
Refactor UserFilterService. Fixes #6497 1 month ago
Daniel Supernault 53742fa699
Lint 9 months ago
Daniel Supernault 6d55cb27ee
Update UserFilterService, add domainBlocks method 3 years ago
Daniel Supernault 5b879f0156
Update mute/block logic with admin defined limits and improved filtering to skip deleted accounts 4 years ago
Daniel Supernault 9c17def4a0
Update UserFilterService, improve cache strategy by using in-memory state via UserFilterObserver for empty lists with a ttl of 90 days. 4 years ago
Daniel Supernault 37abcf3898
Update public timeline api, use cached sorted set and client side block/mute filtering 5 years ago
Daniel Supernault 135474ae11
Update DiscoverController, use UserFilterService on trendingApi 5 years ago
Daniel Supernault c369882b48
Update Redis namespace 7 years ago
Daniel Supernault 50d4c05f60
Add UserFilterService 7 years ago