Commit Graph

291 Commits (a2e38e5ffe26e5569195445698dfd5b329fb2105)

Author SHA1 Message Date
Your Name 9fde74082a add type to function 6 days ago
Your Name 0d999f5dda added return type to function 6 days ago
Your Name 0dbd78ca8e Lint 6 days ago
Your Name 5ebc1af91e BATCH 1 6 days ago
Daniel Supernault 493b8de031
Add FeaturedCollections/Starter Kits support 6 days ago
Your Name c0f29d4a4b Fix web notifications not loading (#7195)
Notification status hydration compared item_type strictly against
Status::class (App\Models\Status). Rows created before the App\ ->
App\Models\ namespace migration store the legacy 'App\Status' morph-map
alias, so the comparison failed and favourite/comment/mention
notifications came back with no attached status. The web UI filters those
out client-side but keeps paginating (response never empty), leaving the
infinite-scroll loader spinning forever.

- NotificationTransformer + Mastodon NotificationTransformer: match both
  the legacy alias and the current FQCN when hydrating status.
- NotificationService::buildNotification: same alias-aware deleted-item guard.
- NotificationService::getMaxPage/getMinPage: filter out unrenderable
  notifications (status-type without a hydrated status) so the endpoint
  never returns rows the UI discards, fixing pagination termination; warn
  on unexpected notification types.
- Tests for transformer hydration (legacy + current), renderable filtering,
  the unexpected-type warning, and pagination termination.
2 weeks ago
Daniel Supernault bbd7618c46
Update StoryService and add has_story to AccountTransformer 2 weeks ago
Daniel Supernault edcf978755
Update AccountTransformer.php 2 weeks ago
Daniel Supernault 94b8fea32a
Update AccountTransformer 2 weeks ago
Your Name 042ab0a6e4 Convert optional() to nullsafe operator
Applies patch 2/21 from pixelfed-staging PR #9: replaces optional($x)->y
with $x?->y across 16 files. Pint-clean.
3 weeks ago
Your Name aae7700bf3 fix: resolve 3 remaining Larastan errors from model migration
- AccountInterstitial middleware: fix FQCN reference
- Like/UndoLike transformers: fix aliased import 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
Daniel Supernault 33dce75f2c
Pint app/ 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.
4 weeks ago
dansup ec38262338
Merge pull request #6576 from shleeable/covidremove
Clean up Covid/WHO
1 month ago
Daniel Supernault 2fd3162f40
Update account transformers 1 month ago
Daniel Supernault e6c09c843a
Update AccountTransformers, add moved 1 month ago
Your Name 6f643e02df Remove dead label field from status API response
The label key was only used for COVID labels which are now removed.
Drop it from both transformers and the StatusService unset list.
5 months ago
Your Name ace2b962af Remove StatusLabelService entirely
Inline the static label value directly in StatusTransformer and
StatusStatelessTransformer, then delete the now-unused service class.
5 months ago
Daniel Supernault 68a6a5fa51
Update UserAccountDeleteCommand 6 months ago
Shlee abc0865ba7
Update UpdateNote.php 8 months ago
Shlee 911156bcba
Update CreateNote.php 8 months ago
Daniel Supernault 53742fa699
Lint 9 months ago
Emily Love Watson 453ae4b32e
MVP migration 12 months ago
Daniel Supernault 0dff48adb3
Update MediaTransformer, return proper image type 1 year ago
Daniel Supernault 51ce7e1f04
Update ActivityPub attachements, use Document type by default 1 year ago
Daniel Supernault 7ae61a74ac
Update CreateNote, improve media attachement handling by leveraging the MediaService cache 1 year ago
Daniel Supernault 6a7307104e
Update CreateNote to use cached MediaService attachments 1 year ago
Daniel Supernault 245ab3bc4f
Update ApiV1Controller, fix relationship fields. Fixes #5900 1 year ago
Felipe Mateus cce4c41d97
pinned posts 2 years ago
Daniel Supernault edac836550
Update AccountTransformer.php 2 years ago
Daniel Supernault 0d25917c29
Update Data Export, refactor following/follower and statuses exports to allow accounts of any size with api entity instead of ap 2 years ago
Daniel Supernault 83cc932fe9
Update AP Status Transformer, fix inReplyTo. Fixes #5409 2 years ago
Daniel Supernault 1f30beccf3
Update Transformers to comply with MastoAPI 2 years ago
Daniel Supernault 79039ba595
Update StatusStatelessTransformer, refactor the caption field to be compliant with the MastoAPI. Fixes #5364 2 years ago
Daniel Supernault 543d83e7ed
Fix newlines 2 years ago
Daniel Supernault fb8dbb95db
Update Status caption render logic 2 years ago
Daniel Supernault 3d6b9badf4
Add groups models, controllers and services 2 years ago
Daniel Supernault bcce1df6fc
Update AP transformers, add DeleteActor activity 3 years ago
Daniel Supernault 2e5e68e447
Update AP Profile Transformer, fix suspended attributes 3 years ago
Daniel Supernault 63100fe950
Update AP Profile Transformer, fix movedTo attribute 3 years ago
Daniel Supernault 25f3fa06af
Update AP Profile Transformer, add `suspended` attribute 3 years ago
Daniel Supernault 01535a6cfe
Update ApiV1Controller, improve notification filtering 3 years ago
Daniel Supernault 45bdfe1efd
Add Profile Migration federation 3 years ago
Daniel Supernault f8145a78cf
Add Profile Migrations 3 years ago
Daniel Supernault 542d110673
Update AccountTransformer, fix follower/following count visibility bug 3 years ago
Daniel Supernault adfaa2b140
Update AP ProfileTransformer, add published attribute 3 years ago
Daniel Supernault fac7c3c5e7
Update MediaTransformer, add hls_manifest attribute 3 years ago
Daniel Supernault 65a048cdd5
Update StatusTransformer 3 years ago