Commit Graph

94 Commits (dev)

Author SHA1 Message Date
Daniel Supernault 823efcaad7
Add FEP-044f: Consent-respecting quote posts 4 days ago
Your Name 2be73c4879 Larastan Level 1 6 days ago
Your Name 99031fa6bc ReturnTypeFromReturnDirectArrayRector 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 b24503a46c chore: rename Pirate English locale to BCP-47 en-x-pirate
Use the BCP-47 private-use subtag en-x-pirate instead of en-Pirate:
- rename lang/en-Pirate -> lang/en-x-pirate
- update crowdin.yml mapping (en-PT -> en-x-pirate)
- update ExportLanguages LOCALE_OVERRIDES key + display name
- bump locale code validation max length (6 -> 12) so the longer
  code passes in SpaController and HomeSettings
- regenerate locale exports/manifest and rebuild web assets
1 week ago
Your Name 8f4add2f1e polish 1 week ago
Shlee 7a5626766e
Update PrivacySettings.php 1 week ago
Your Name 7b90bc8699 Fix remove-all follower purge chunkById key and gate the route behind dangerzone 1 week ago
Your Name 9d839f7b5a Fix missing email verification dispatch on settings email change 2 weeks ago
Your Name 277b8aa970 Use now() helper instead of Carbon::now() for current-time access
Aligns with the app's dominant convention (413 now()/today() call
sites vs 12 Carbon::now()). Carbon::parse() calls are untouched since
they parse arbitrary date strings, not current-time access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2 weeks ago
Your Name 1581863093 Exclude private profiles from public directory and clear suggestable on going private 2 weeks ago
Your Name 53ad34b321 Ignore own row when validating email update uniqueness 2 weeks ago
dansup 4c2ccc7ee7
Merge pull request #7088 from pixelfed/shleeable-patch-4
Change 2FA code validation to require 6 digits
2 weeks ago
Shlee 76d4e1ab23
Change 2FA code validation to require 6 digits 2 weeks ago
Shlee 0a39ccef98
Update redirect route for 2FA setup 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 ffcef3eb2d fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
4 weeks ago
Your Name 1617734907 Revert "Merge pull request #6851 from pixelfed/fix/phpstan-auth-request-scope-2"
This reverts commit ce4baf6995, reversing
changes made to 9235cb979a.
4 weeks ago
Your Name 0939f495bb fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
4 weeks ago
Your Name 58efefb878 fix: add missing FeedUnfollowPipeline import
Add missing use statement for FeedUnfollowPipeline in PrivacySettings
and FollowerObserver. These caused PHPStan internal errors blocking
full analysis.
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
Your Name 98267eb26f refactor: replace deprecated str_random() with Str::random()
str_random() is a deprecated helper from laravel/helpers that was
missed in the initial helpers removal. Replace all 18 call sites
with the modern Str::random() equivalent.
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
Shlee 0f79861f1d
Update PrivacySettings.php 1 month ago
Daniel Supernault 14b325641f
Update Password Change with new Revoke Sessions option
As requested in https://lgbtqia.space/@serigala_tropis/116412473982617371
5 months ago
Jonathan de Jong 8e91918b88
Make sure profile saving has a clear error when email is not verified 7 months ago
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 35424ccb4d
Update HomeSettings, remove unnecessary relation query 1 year 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 c5e7e91777
Add disable_embeds setting, and fix cache invalidation in other settings 2 years ago
Daniel Supernault b7322b6874
Update PrivacySettings controller, refresh RelationshipService when unmute/unblocking 3 years ago
Daniel Supernault e742d595a6
Update PrivacySettings controller, add cache invalidation 3 years ago
Daniel Supernault 542d110673
Update AccountTransformer, fix follower/following count visibility bug 3 years ago
Daniel Supernault 5f6ed85770
Update settings sidebar 3 years ago
Daniel Supernault 28da44beec
Update PrivacySettings, add domainBlocks 3 years ago
Daniel Supernault fc24630eba
Update Privacy Settings, add support for Mastodon indexable search flag 3 years ago
Daniel Supernault 3662d3defe
Update Settings, allow users to disable atom feeds 3 years ago
Daniel Supernault 506f95c6b1
Update SecuritySettings, remove imagick depdency for 2FA qr code generation image 3 years ago
Daniel Supernault 634c15e486
Update Privacy Settings, add Directory setting 4 years ago
Daniel Supernault 558700fc0a
Update settings, set maxlength on name and bio inputs. Fixes #4248 4 years ago
Daniel Supernault 498b46f70f
Update AccountService, fix actor cache invalidation 4 years ago
Daniel Supernault 399bf5f810
Update HomeSettings controller, bail earlier when attempting to update email that already exists 4 years ago
Shlee 9b792e8e98
Update LabsSettings.php 4 years ago
Daniel Supernault 08246f2482
Update ApiV1Controller, fix account settings bug 5 years ago
Daniel Supernault 8ee104363a
Update Profile, add linkified bio, joined date, follows you label and improved website handling 5 years ago
Daniel Supernault fabb57a9d5
Add profile pronouns 5 years ago
Daniel Supernault 7895097fc1
Update config() to config_cache() 5 years ago