Commit Graph

32 Commits (5ebc1af91e96ca065ea55f20e94de5d874a442c8)

Author SHA1 Message Date
Your Name 5ebc1af91e BATCH 1 7 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 e7b70c6084 refactor: extract duplicate patterns into shared methods
1. Add FractalService with static item() and collection() helpers
   replacing 22 call sites that repeated the 4-line Fractal Manager
   + ArraySerializer boilerplate.

2. Add AccountInterstitial::createFromStatus() factory method
   consolidating 4 identical 15-line blocks that create interstitials
   with status metadata.

3. Add NotificationService::createNotification() to handle the
   repeated pattern of creating, caching, and registering a
   notification in the recipient's feed.

4. Add NotificationService::firstOrCreateNotification() for
   idempotent notifications (share/boost, mention) that should
   only notify once per actor+action+item combination.
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 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
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
1 month ago
Daniel Supernault 53742fa699
Lint 9 months ago
Shlee 604ca31cc0
Update CommentPipeline.php 11 months ago
Your Name 4bbabfffb9 Misc pipelines defensive checks 11 months ago
Daniel Supernault fa97a1f38e
Update notification pipelines, fix non-local saving 3 years ago
Daniel Supernault 764315666e
Update CommentPipeline, replace expensive query and mark for refactor 3 years ago
Daniel Supernault 6cdb5bc672
Update Notification logic, remove message and rendered fields 3 years ago
Daniel Supernault 849e510311
Update db:raw queries to support laravel v10 3 years ago
Daniel Supernault fe81378808
Update StatusReplyPipeline 4 years ago
Daniel Supernault 049ce7370c
Update StatusReplyPipeline, fix comment counts 4 years ago
Daniel Supernault 164aa5779a
Update StatusReplyPipeline, fix comment counts 4 years ago
Daniel Supernault d4dfa95c30
Update ReplyPipelines, use more efficent reply count calculation 4 years ago
Daniel Supernault 0d780ffbda
Update reply pipelines, restore reply_count logic 4 years ago
Daniel Supernault b457a44683
Update CommentPipeline, remove expensive reply count re-calculation query 4 years ago
Daniel Supernault ccc94802ec
Update CommentPipeline, improve parent reply_count calculation - mysql only for now 5 years ago
Daniel Supernault 1515a9f111
Update CommentPipeline 5 years ago
Daniel Supernault 0616a859d5
Update CommentPipeline, fix variable bug 5 years ago
Daniel Supernault b6b0837f49
Update CommentPipeline, move reply_count calculation to comment pipeline job and improve count calculation 5 years ago
Daniel Supernault 6476855519
Update jobs, add retry and timeout attributes 6 years ago
Daniel Supernault c369882b48
Update Redis namespace 7 years ago
Daniel Supernault 60e9d547ae
Fix regression in comment mutes/blocks 7 years ago
Daniel Supernault 777b103288
Update CommentPipeline 7 years ago
Daniel Supernault 718d9a0452
Update CommentPipeline 8 years ago
Daniel Supernault 8c0119e69d
Update CommentPipeline 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault f64cf90dda Update CommentPipeline, do not send notifications for self comments 8 years ago
Daniel Supernault 20432ada5f Add CommentPipeline 8 years ago