Commit Graph

49 Commits (5ebc1af91e96ca065ea55f20e94de5d874a442c8)

Author SHA1 Message Date
Your Name 5ebc1af91e BATCH 1 6 days ago
Shlee 140221fe90
Merge pull request #7192 from pixelfed/refactor/str-of-to-native
Laravel 13 Prep: Replace Str::of() fluent chains with static Str::/native calls
2 weeks ago
Your Name a424493420 Replace Str::of() fluent chains with static Str::/native calls
Aligns with the app's dominant convention (171 static Str:: calls vs
24 Str::of() chains). Uses Str::afterLast() for the repeated
"segment after last slash" pattern, Str::matchAll() where a
Collection return is needed, and native explode()/substr() where a
plain array/string suffices.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2 weeks ago
Your Name 277b8aa970 Use now() helper instead of Carbon::now() for current-time access
Aligns with the app's dominant convention (413 now()/today() call
sites vs 12 Carbon::now()). Carbon::parse() calls are untouched since
they parse arbitrary date strings, not current-time access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2 weeks ago
Your Name 400f00c5e1 feat: storage:maintenance command + in-flow cleanup of emptied dirs
Replace the remcache GC (GarbageCollectorRemcache / gc:remcache) with a
broader storage:maintenance command that sweeps stale remcache temp files and
recursively removes the random empty directories accumulated under the media,
story, avatar and import trees (--hours/--only/--except/--dry-run), scheduled
daily.

Fix the root causes so flows clean up after themselves rather than relying on
the sweep:
- MediaDeletePipeline removes its own emptied m/_v2 leaf dir
- AvatarOptimize logs the previously-swallowed exception, still cleans up the
  old avatar on failure, and removes the old file's now-empty splayed dir
- AvatarController::deleteAvatar removes the emptied splayed dir
- StoryExpire/StoryDelete remove the story's own emptied leaf dir
- TransformImports removes imports/{userId} once its files are moved out
- StoryFetch cleans up its remcache temp file in a finally block
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 33dce75f2c
Pint app/ 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
Your Name 552a55c2d2 Upgrade images to v4 4 weeks ago
Daniel Supernault 53742fa699
Lint 9 months ago
Daniel Supernault 374344754e
Lint 9 months ago
Shlee f839a1a67d
Update AvatarOptimize.php 10 months ago
Shlee 8ee07248d9
Update AvatarOptimize.php 10 months ago
Your Name ca6c875bbb Fix PHPStan class.notFound issues 11 months ago
Daniel Supernault 86bb81d1a9
Fix typo 1 year ago
Daniel Supernault 5c7064063d
Typo 1 year ago
Daniel Supernault 27953d0969
FIx AvatarOptimize job 1 year ago
Daniel Supernault 665581d80c
Update cloud storage, use config_cache 3 years ago
Daniel Supernault 319ced4054
Update CreateAvatar job, add processing constraints and set is_remote attribute 3 years ago
Daniel Supernault 82798b5ea3
Update AvatarPipeline, improve refresh logic and garbage collection to purge old avatars 3 years ago
Daniel Supernault e3be04db2b
Update HandleUpdateActivity 3 years ago
Daniel Supernault e8d4ce1888
Update MediaStorageService 3 years ago
Daniel Supernault d6374cfe70
Update MediaStorageService 3 years ago
Daniel Supernault 1bf3ad7ed9
Update HandleUpdateActivity 3 years ago
Daniel Supernault 0eb51ed74d
Update RemoteAvatarFetch command 3 years ago
Daniel Supernault a3b67a88dc
Update jobs timeout 4 years ago
Daniel Supernault 02edd19d4d
Update Avatar pipeline, fix cloud storage media_path 4 years ago
Daniel Supernault d52ee26dd7
Update AvatarStorage pipeline 4 years ago
Daniel Supernault ae78129678
Update changelog 4 years ago
Daniel Supernault b4bd0400c2
Store remote avatars locally if S3 not enabled 5 years ago
Daniel Supernault 92bc28456d
Update RemoteAvatarFetch job 5 years ago
Daniel Supernault 41792eea56
Update config() to config_cache() 5 years ago
Daniel Supernault a9f009305c
Update config() to config_cache() 5 years ago
Daniel Supernault 4f40f6f5a1
Update RemotAvatarFetch, only dispatch jobs if cloud storage is enabled 6 years ago
Daniel Supernault 4c148055cf
Update AvatarPipeline, add remote avatar fetch 6 years ago
Daniel Supernault 889c3d8758
Update AvatarController, remove deprecated thumb_path 6 years ago
Daniel Supernault f6528c8470
Update avatars, use jpeg default 6 years ago
Daniel Supernault f47d2113b1
Remove unused job 7 years ago
Daniel Supernault acd705e9d3
Update AvatarOptimize job 8 years ago
Daniel Supernault 541927634f
Remove identicons, use default avatar for new users 8 years ago
Daniel Supernault 63f920a143
Update AvatarOptimize job 8 years ago
Daniel Supernault 047d89c1b2
Update AvatarPipeline 8 years ago
Daniel Supernault f544c5f8b5
Add ImportAvatar job 8 years ago
Daniel Supernault 7316ee38c4
Update AvatarPipeline 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault f4f7909a06
Update web routes 8 years ago
Daniel Supernault 8498779430 Fix avatar bug 8 years ago
Daniel Supernault dde1e19d55 Update CreateAvatar job 8 years ago
Daniel Supernault a5438f4c37 Add CreateAvatar job 8 years ago