Commit Graph

37 Commits (b24503a46ccadf8e6b43438e7415f0222f5aa28d)

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
Your Name 613cf413de Use ILIKE for case-insensitive search on PostgreSQL 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 54cfdf3c2b refactor: add return type declarations to controller methods
Adds explicit return type declarations to 498 controller methods
across 88 files. Types inferred from return statements:

- JsonResponse for response()->json() returns
- RedirectResponse for redirect()/back() returns
- View (contract) for view() returns
- Response for response() returns
- void for methods with no return value
- array for array returns
- string/int/bool for scalar returns

Also fixes 3 methods with incorrect bare returns:
- AvatarController::deleteAvatar - bare return → json response
- ImportPostController::checkPermissions - bare return → true
- RemoteAuthController::accountToId - bare return → empty array
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
Daniel Supernault 9eeb7b6741
Update Status caption logic, stop storing duplicate html caption in db and defer to cached StatusService rendering 2 years ago
Daniel Supernault 5071aaf408
Update activitpub setting, use config_cache() 3 years ago
Daniel Supernault 26b9c1401c
Update ActivityPub helpers, fix comment threading in statusFetch() method 5 years ago
Daniel Supernault 53134208fe
Update config() to config_cache() 5 years ago
Daniel Supernault 8d923d7767
Update SearchController, update version 6 years ago
Daniel Supernault f67fada273
Update SearchController, fix self search bug and rank local matches first 6 years ago
Daniel Supernault 9e533c7e87
Update SearchController 7 years ago
Daniel Supernault 869b4ff727
Update SearchController, add WebfingerService support 7 years ago
Daniel Supernault 58a9ca664c
Update SearchController 7 years ago
Daniel Supernault 02e131f3b2
Update SearchController 7 years ago
Daniel Supernault ea13af7446
Update SearchController 7 years ago
Daniel Supernault 98ca36dc65
Update SearchController 7 years ago
Daniel Supernault f6663c7ded
Update search results, fix status grid 7 years ago
Daniel Supernault 234f1df097
Update AP Inbox 7 years ago
Daniel Supernault dc8acf9210
Update SearchController, fix AP verb typo 7 years ago
Daniel Supernault 1c9e823cad
Update SearchController 7 years ago
Daniel Supernault a538d1d09a
Update SearchController 8 years ago
Daniel Supernault 8c88c88fc0
Update SearchController 8 years ago
Daniel Supernault 44a60d745b
Update search 8 years ago
Daniel Supernault ac4eea6c85
Update SearchController 8 years ago
Daniel Supernault 8278224361
Update SearchController 8 years ago
Daniel Supernault 1284812f6f
Update SearchController 8 years ago
Daniel Supernault 3193f558cf
Update SearchController 8 years ago
Daniel Supernault 4739c25fe0
Update Cache, prepare for laravel 5.8 8 years ago
Daniel Supernault b80f6daac7
Update SearchController 8 years ago
Daniel Supernault 030ec4b825
Update SearchController 8 years ago
Daniel Supernault 25a33d717a
Update SearchController 8 years ago
Daniel Supernault 5cfa7f877c
Update SearchController 8 years ago
Daniel Supernault 4a7a56f2cb
Update SearchController 8 years ago
Daniel Supernault 958b5b402f
Update SearchController 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault 1252f76a2f Add SearchController 8 years ago