Commit Graph

10 Commits (933e24c9bade0d1f4aac3ed0f4e3411aec2f7bb7)

Author SHA1 Message Date
Your Name a14fba166f Fix cached-page 500s and flaky smoke/API tests
- terms/privacy/community-guidelines views accessed the cached page as an
  object ($page->title), but cachedPage() returns an array, causing a 500
  whenever a custom Page row existed. Switch to array access.
- PublicRouteSmokeTest: enable open_registration before hitting /register,
  which 404s by default when registration is disabled.
- Api/AccountTest: derive sanctum.stateful domain from app.url instead of
  hardcoding pixelfed.test, so the first-party auth test is environment
  independent.
2 weeks ago
Arnaud 6537787c4e More translatable strings : landing, privacy policy, terms 2 weeks 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
Daniel Supernault 4f8c5e5519
Update terms of use page layout 7 years ago
Daniel Supernault 9327d50c28
Update terms view 7 years ago
Daniel Supernault bb207a42bd
Update custom page views 7 years ago
Daniel Supernault 568c77bd27
Update site pages and help center reported at https://mastodon.social/@trwnh/101786704542511307 8 years ago
Daniel Supernault 65d30f14e7
Update ToS 8 years ago
hellcp 76f23cb208 Introduce opengraph tags to the service 8 years ago
Daniel Supernault fb8a17ad6b Add site blade views 8 years ago