Commit Graph

35 Commits (4547b1fc118cf97fe16b86b7ef54d8595cfd4901)

Author SHA1 Message Date
Your Name 4547b1fc11 StrStartsWithRector 6 days ago
Your Name 9e052883bf StrContains 6 days ago
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 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
Daniel Supernault 9d60db5a63
Update SearchApiV2Service 6 months ago
Your Name 45a9a3b472 RemoveUnreachableStatementRector 11 months ago
Daniel Supernault 0a98b7ad20
Update SearchApiV2Service, fix offset bug. Fixes #5875 1 year ago
Daniel Supernault 83c1a7fd4b
Update SearchApiV2Service, fix hashtag search 2 years ago
Daniel Supernault d0c376f579
Update SearchApiV2Service, add support for Moved accounts 2 years ago
Daniel Supernault cee618e844
Update SearchApiV2Service, use more efficient query 3 years ago
Daniel Supernault c3f16c87a3
Update SearchApiV2Service, add user domain blocks filtering 3 years ago
Daniel Supernault c61d0b915f
Update SearchApiV2Service, improve resolve query logic to better handle remote posts/profiles and local posts/profiles 3 years ago
Daniel Supernault 11552d1273
Update SearchApiV2Service 3 years ago
Daniel Supernault 666e5732a5
Update SearchApiV2Service, improve postgres support 3 years ago
Daniel Supernault 6e20d0a670
Update SearchApiV2Service, fix postgres hashtag search and prepend wildcard operator to improve results 3 years ago
Daniel Supernault 593de9e34f
Update SearchApiV2Service, order hashtag results by cached_count 4 years ago
Daniel Supernault 1992b5bc90
Update SearchApiV2Service, fix hashtag search. 4 years ago
Daniel Supernault f6a588f9cf
Update SearchApiV2Service, improve account search results 4 years ago
Daniel Supernault 4d1f281144
Update SearchApiV2Service, improve query performance 4 years ago
Daniel Supernault 8487231177
Add hashtag administration 4 years ago
Daniel Supernault 9d31f73bfa
Fix SearchApiV2Service, improve webfinger condition 4 years ago
Daniel Supernault 533f7165a9
Update SearchApiService, improve account/webfinger results 4 years ago
Daniel Supernault 9dac861ebe
Update ApiV1Controller, fix search v2 entities 5 years ago
Daniel Supernault 74018e9c4e
Update search service, fix banned instance edge case 5 years ago
Daniel Supernault 281443d7fe
Update SearchApiV2Service, filter banned instances 5 years ago
Daniel Supernault c8a667f20e
Update SearchApiV2Service, resolve remote queries 5 years ago
Daniel Supernault fbaed93eda
Update SearchApiV2Service, improve performance and include hashtag post counts when applicable 5 years ago
Daniel Supernault a0c0c84d3d
Update SearchApiV2Service, fix offset bug fixes #2116 6 years ago
Daniel Supernault c66d120cb7
Update SearchApiV2Service, order statuses by timestamp 7 years ago
Daniel Supernault d3cd0eea11
Update SearchApiV2Service 7 years ago
Daniel Supernault 4573fd850f
Update SearchApiV2Service 7 years ago
Daniel Supernault 1dac65fc10
Update SearchApiV2Service 7 years ago
Daniel Supernault efa8b35877
Update SearchApiV2Service 7 years ago
Daniel Supernault 6cf89e7346
Add SearchApiV2Service 7 years ago