Commit Graph

19 Commits (ba9033e5ee4dae92c414318c5af73bc4715e3046)

Author SHA1 Message Date
Daniel Supernault 15da72dd94
Refactor blurhash 3 days ago
Your Name f0e951dcce fix: stop caching raw Eloquent models to prevent incomplete-object 500s
Caching an Eloquent model in a Cache::remember closure could deserialize
into a __PHP_Incomplete_Class on read, throwing 'attempt to access a
property on an incomplete object' and returning a 500. This surfaced on
guest profile pages (ProfileController::buildProfile reading
$user->user->settings) and affected several other latent call sites.

Changes:
- ProfileController: cache a plain settings array instead of the
  UserSetting model; fall back to defaults when the settings row is missing
- StoryService::getById: fetch a live model instead of caching it
- InstanceService::getByDomain, CustomEmoji::scan: cache arrays
- Site/MobileController: cache Page data as an array via a shared
  ManagesCachedPages trait; update blade views to array access
- Add public-route smoke/regression tests covering the cache-read path
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
Your Name ca6c875bbb Fix PHPStan class.notFound issues 11 months ago
Daniel Supernault f0bc9d66e4
Update InstanceService, fix total post count when config_cache is disabled 1 year ago
Daniel Supernault 4f2b8ed20a
Refactor total local post count logic, cache value and schedule updates twice daily to eliminate the perf issue on larger instances 2 years ago
Daniel Supernault 4aad1c225a
Add api/v1/instance/peers API endpoint, disabled by default 2 years ago
Emelia Smith 74ad26fee6
Fix potential memory leak due to not calling imagedestroy on GdImage objects 3 years ago
Daniel Supernault 58ec49fd57
Update InstanceService, fix banner blurhash memory bug 3 years ago
Daniel Supernault 026842dd93
Update InstanceService, fix banner blurhash memory bug 3 years ago
Daniel Supernault 3aad75abcf
Update InstanceService, fix banner blurhash memory bug 3 years ago
Daniel Supernault 167dbcdd43
Add /api/v2/instance api endpoint 3 years ago
Daniel Supernault ecfc0766f8
Update admin instances dashboard 4 years ago
Daniel Supernault a0da6ec39a
Update InstanceService, improve unlisted/banned network post filtering 4 years ago
Daniel Supernault e0c3dae324
Update profile audience to filter blocked instances 4 years ago
Daniel Supernault 72918a4b09
Update InstanceService, define cache keys 5 years ago
Daniel Supernault 66f04bec25
Update InstanceService 5 years ago
Daniel Supernault 2fb916c22b
Update InstanceService 5 years ago
Daniel Supernault c20a9dfefe
Add InstanceService 6 years ago