Commit Graph

37 Commits (5ebc1af91e96ca065ea55f20e94de5d874a442c8)

Author SHA1 Message Date
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 9c9e2a5a22 refactor: extract shared ActivityPub pool delivery into ActivityPubDeliveryService
Add ActivityPubDeliveryService::pool() using Laravel's Http::pool() to
consolidate the duplicated delivery pattern found across 10 jobs.

Updated jobs:
- StatusActivityPubDeliver
- StatusDelete
- StatusLocalUpdateActivityPubDeliverPipeline
- FanoutDeletePipeline
- SharePipeline
- UndoSharePipeline
- StoryFanout
- StoryExpire
- StoryDelete
- ProfileMigrationDeliverMoveActivityPipeline

The shared method accepts a Profile (sender), audience (inbox URLs),
and activity (payload array), handling signing, user-agent, timeout,
and concurrency in one place. No direct Guzzle usage remains in
app/Jobs/.
4 weeks ago
Shlee f018004b56
Merge pull request #6892 from pixelfed/refactor/move-models-to-namespace
Refactor/move models to namespace
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 a142db87b4 polish 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.
1 month ago
Shlee 6ff0c899f0
Update StatusActivityPubDeliver.php 9 months ago
Daniel Supernault 53742fa699
Lint 9 months ago
Your Name efb9db3eed StatusPipeline defensive checks 11 months ago
Daniel Supernault decaa2596d
Fix curl 2 years ago
Daniel Supernault 1f2183ee67
Update StatusActivityPubDeliver, fix addressing 3 years ago
Daniel Supernault 5a5d00b947
Update ap pipelines 4 years ago
noellabo 74cc41d4fa Add Content-Type and User-Agent for activity delivery 4 years ago
Daniel Supernault 7709220074
Add Polls 5 years ago
Daniel Supernault 610d51c2ec
Update AP job 7 years ago
Daniel Supernault 14d43c2a7e
Update AP handler, deliver unlisted and followers-only posts 7 years ago
Daniel Supernault d85fdb8304
Update StatusPipeline 7 years ago
Daniel Supernault 015c2f9954
Update StatusPipeline 7 years ago
Daniel Supernault ce519c1ad5
Update StatusPipeline 8 years ago
Daniel Supernault feeb60eb94
Update activitypub deliver 8 years ago
Daniel Supernault 691cc991c6
Update AP deliver job 8 years ago
Daniel Supernault 4bfe30e5b5
Update AP deliver job 8 years ago
Daniel Supernault c817d4cfda
Update AP deliver job 8 years ago
Daniel Supernault d7d47ca132
Update AP deliver job 8 years ago
Daniel Supernault d28a5ea67f
Update AP deliver job 8 years ago
Daniel Supernault b6bb6e3cb5
Update AP deliver job 8 years ago
Daniel Supernault 87e856c001
Update AP deliver job 8 years ago
Daniel Supernault 4e978b7a56
Update AP deliver job 8 years ago
Daniel Supernault fadfd8349b
Add async activitypub delivery with timeout and concurrency settings 8 years ago
Daniel Supernault 8ba6506a6a
Update AP job 8 years ago
Daniel Supernault 7754cfb167
Update StatusTransformer 8 years ago
Daniel Supernault 8edeab11d6
Update StatusPipeline 8 years ago
Daniel Supernault 14d43ba845
Fix AP fanout 8 years ago
Daniel Supernault 94ee7a2f25
Update AP delivery job 8 years ago
Daniel Supernault 0621b38bb0
Update StatusActivityPubDeliver job 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault ec2bff95b6 Add StatusPipeline 8 years ago