Commit Graph

17 Commits (0dbd78ca8eeb867a68d2e55ea21d0c0cb1a5fbff)

Author SHA1 Message Date
Your Name e3b6cebf27 Fix MariaDB driver detection and reblog caption null inserts
Laravel 11 exposes MariaDB as a dedicated 'mariadb' driver, so
config('database.default') === 'mysql' checks silently misclassified
MariaDB as the non-mysql (postgres) branch.

- Add App\Util\Database\DatabaseDriver with isMysqlLike()/isPgsql()
  plus db_is_mysql_like()/db_is_pgsql() global helpers.
- Route all database.default driver checks through the helpers so
  MySQL and MariaDB are treated as one group.
- Use '' (not null) for share/compose caption+rendered, valid whether
  the column is nullable or NOT NULL (it is NOT NULL on MySQL/MariaDB).
- Guard pgsql strtolower() in registration against missing fields.
- Scope CustomEmoji::duplicateShortcodes to the grouped column for
  Postgres GROUP BY validity.
- Remove stale Postgres guard in status:dedup; use havingRaw for
  cross-driver HAVING.
1 week ago
Daniel Supernault 6a2208087c
Update AdminStatsService, fix reports_monthly stat 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 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 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
Rm Yakovenko efcf836e6d AdminStatsService: do not count deleted users 2 years ago
Daniel Supernault 6e0d1ef41b
Update cache 2 years ago
Daniel Supernault d1dbed8932
Fix AdminStatService cache key, fixes #3612 4 years ago
Daniel Supernault 9d52b9c2d6
Improve admin dashboard by moving expensive stats to its page and loading stats and recent data async on the dashboard home page 4 years ago
noellabo 2093d1b33b Change ISO-8601 to RFC 3339 EXTENDED 4 years ago
Daniel Supernault 4cb956aea2
Update AdminStatsService, add storage() method 5 years ago
Dan Church b167873632
Fix grouping error in PostgreSQL 5 years ago
Daniel Supernault af71913597
Update AdminStatsService, fix postgres bug 5 years ago
Daniel Supernault eb7d5a4e36
New admin dashboard layout 5 years ago
Daniel Supernault 888ea7f07e
Update ap inbox 6 years ago
Daniel Supernault 941da5d589
Update admin dashboard 6 years ago
Daniel Supernault 41abe9d261
Update AdminController 7 years ago