Commit Graph

559 Commits (a142db87b4e63d7d760d5f1d337e9636c388e169)

Author SHA1 Message Date
Your Name a142db87b4 polish 4 weeks ago
Daniel Supernault 33dce75f2c
Pint app/ 4 weeks ago
Your Name 7c964f3b4f fix: replace backslash-prefixed facade calls with imported references
Replace \Cache::, \Log::, \DB:: calls with their imported facade
equivalents. The backslash-prefix relies on global aliases which
PHPStan cannot resolve, causing class.notFound errors.
4 weeks ago
Shlee 4bb9edcb22
Update StoryService.php 4 weeks ago
Shlee 942e15c652
Update StoryService.php 4 weeks ago
Shlee 2bc40e38f8
Merge pull request #6844 from pixelfed/fix/phpstan-static-method-not-found
fix: remove call to non-existent PollService::storyPoll()
4 weeks ago
Shlee c315b60867
Merge pull request #6843 from pixelfed/fix/phpstan-unnecessary-collection-call
fix: use query methods instead of collection methods
4 weeks ago
Your Name e7ba43e2e1 fix: add missing use imports to resolve phpstan class.notFound errors
Add missing imports for Log, Cache, DB, FollowerService, StatusService,
LikeService, ReblogService, UserFilterService, AdminProfile, OauthClient,
and fix StatusTimelineTransformer reference (class didn't exist, replaced
with StatusTransformer).
4 weeks ago
Your Name 7bde84b23c fix: remove call to non-existent PollService::storyPoll()
The storyPoll() method was never implemented on PollService.
Replace with null to fix phpstan staticMethod.notFound.

Note: Passport::personalAccessClientId() is also flagged but deferred
to a separate PAT refactoring effort.
4 weeks ago
Your Name 49b85e9f22 fix: use query methods instead of collection methods (phpstan noUnnecessaryCollectionCall)
- PollService: pluck()->first() → value()
- StoryService: groupBy()->pluck()->count() → distinct()->count()
- Inbox: find($objects)->count() → whereIn('id', $objects)->count()
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 443f29acc9
Update AccountService.php 4 weeks ago
Your Name faa216b329 refactor: replace str_limit() with Str::limit()
Replace remaining 3 deprecated str_limit() calls with Str::limit().
No other deprecated str_* helpers remain in the codebase.
4 weeks ago
Your Name edb4368b08 refactor: replace deprecated laravel/helpers with native alternatives
Replace all deprecated helper function calls:
- str_slug() → Str::slug()
- starts_with() → str_starts_with()
- ends_with() → str_ends_with()
- array_first() → Arr::first()
- array_last() → Arr::last()
- array_flatten() → Arr::flatten()

Remove laravel/helpers package from composer.json as it is no longer
needed and will not be maintained for Laravel 13.
4 weeks ago
Daniel Supernault 7937d91c37
Update ApiV1Controller, add is_suggestable to update_credentials endpoint 4 weeks ago
Daniel Supernault 59f57b1107
Update AccountService 4 weeks ago
Your Name 79541afaa0 Merge origin/staging, resolve conflicts keeping matomo/device-detector over jenssegers/agent 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
Your Name 651f0de74f Replace jenssegers/agent with matomo/device-detector
- Remove unmaintained jenssegers/agent package (no releases since 2021)
- Add matomo/device-detector v6.5 as actively maintained replacement
- Create App\Services\UserAgentService wrapper for drop-in compatibility
- Update UserDevice model and ApiV1Dot1Controller to use new service
4 weeks ago
dansup ec38262338
Merge pull request #6576 from shleeable/covidremove
Clean up Covid/WHO
1 month ago
Daniel Supernault ecb04f3ab3
Refactor UserFilterService. Fixes #6497 1 month ago
Daniel Supernault a2be0cb47d
Update CommentController 1 month ago
dansup ba61747826
Merge pull request #6649 from hnrd/tempmails
add spammy domains to the ban list
1 month ago
dansup 0df11eb0ce
Merge pull request #6685 from pixelfed/shleeable-patch-19
Autospam: Posting a photo with an empty caption can lock the user account as spam
1 month ago
Daniel Supernault 2216402ed4
Update Helpers 1 month ago
Shlee b9ecfb5658
Update AutospamService.php 1 month ago
Shlee 28abcaefa9
Update FilesystemService.php 1 month ago
tercean f2cee91522 ban more tempmail domains 3 months ago
dansup ed6357c644
Merge pull request #6552 from pixelfed/w1
Federation: Valid ActivityPub Content-Type variants are rejected, causing remote fetch failures
4 months ago
Daniel Supernault 344f4dfaad
Revert 2 changes that broke Hashtag Following 5 months 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
Your Name 41089fcccd Remove COVID label feature flag and related code
Remove ENABLE_COVID_LABEL, COVID_LABEL_URL, and COVID_LABEL_ORG env
vars and all associated backend/frontend code:

- config/instance.php: remove label.covid config block
- StatusLabelService: remove keyword matching, return static false
- Site/Config.php: remove label.covid from API response
- StatusCard.vue: remove COVID banner and labelRedirect method
- GroupStatus.vue: remove COVID banner and labelRedirect method
- diagnostics blade: remove COVID diagnostic rows
5 months ago
Shlee e73ce720b7
Update ActivityPubFetchService.php 6 months ago
Shlee dd995e3716
Update ActivityPubFetchService.php 6 months ago
Your Name 3fc0b8caa5 Federation: Valid ActivityPub Content-Type variants are rejected, causing remote fetch failures 6 months ago
dansup e6697da7e2
Merge pull request #6499 from pixelfed/shleeable-patch-10
Profiles Mutual followers Redis keys never expire. Fixed memory leak.
6 months ago
dansup cb26e1831a
Merge pull request #6498 from pixelfed/shleeable-patch-9
zcard > 0 incorrectly implies the cache is fully warmed
6 months ago
dansup 14580993d2
Merge pull request #6474 from pixelfed/shleeable-patch-3
Add additional logging to NodeinfoService.php
6 months ago
dansup edcda57e7a
Merge pull request #6387 from rm-yakovenko/issues/6376
[Server Bug]: app.logo is not used in code
6 months ago
Daniel Supernault 9d60db5a63
Update SearchApiV2Service 6 months ago
Shlee 2b50576336
Update FollowerService.php 7 months ago
Shlee dec42a04d8
Update HashtagFollowService.php 7 months ago
Shlee 9d343fa027
Update NodeinfoService.php 7 months ago
dansup 416c02e2b8
Merge pull request #6453 from pixelfed/a4
bugfix: Partial status updates nullify omitted caption/CW causing data loss)
7 months ago
Your Name 995a53b4ef fix 8 months ago
Shlee 4f7f2b2259
Update HashtagFollowService.php 8 months ago
dansup 7a17a6735a
Merge pull request #6437 from pixelfed/shleeable-patch-21
Update FetchCacheService.php - Cache put/get keys.
8 months ago
dansup a7c1ebc59b
Merge pull request #6436 from pixelfed/shleeable-patch-20
TypeCheck: ConfigCacheService::get check should be more specific.
8 months ago
dansup e859972848
Merge pull request #6417 from pixelfed/shleeable-patch-16
Safety: Update BouncerService.php to fallback to empty array instead of crashing on failed fetch
8 months ago