Commit Graph

499 Commits (f839a1a67d47f0723e82a66612ec7bade0215828)

Author SHA1 Message Date
dansup 7881b09c2f
Merge pull request #6304 from pixelfed/classV2
Larastan: Fix Missing classes 2 - Medium risk
1 week ago
dansup 14d5fe940e
Merge pull request #6302 from pixelfed/miscClosureUnusedUseV2
Larastan: fix Unused Use - Low risk
1 week ago
dansup bacc8bc134
Merge pull request #6300 from pixelfed/argumentsV1
Larastan: Fix too many arguments - Medium risk
1 week ago
dansup f9d430d6e6
Merge pull request #6299 from pixelfed/classNotFoundV1
Larastan: Fix Missing classes - Low risk
1 week ago
dansup 6df58e67f2
Merge pull request #6290 from pixelfed/emptyv1
Larastan: 'empty() always exists and is not falsy' errors - Low risk
1 week ago
Your Name 15cc07e602 Fix all class.notFound PHPStan issues - 31 fixes 2 weeks ago
Your Name 28ed625f12 Fix PHPStan closure.unusedUse issues - 7 fixes 2 weeks ago
Your Name b5c6984689 Fix PHPStan arguments.count issues 2 weeks ago
Your Name ca6c875bbb Fix PHPStan class.notFound issues 2 weeks ago
Your Name 72e840345e Fix PHPStan 'empty() always exists and is not falsy' errors
- Remove redundant empty() checks where variables are guaranteed to exist and be non-falsy
- Replace empty() with simple null/false checks where appropriate
- Maintain original logic while fixing static analysis issues
- Affected files:
  - app/Http/Controllers/GroupController.php
  - app/Http/Controllers/ProfileAliasController.php
  - app/Jobs/ImageOptimizePipeline/ImageUpdate.php
  - app/Jobs/InboxPipeline/DeleteWorker.php
  - app/Jobs/InboxPipeline/InboxValidator.php
  - app/Jobs/InboxPipeline/InboxWorker.php
  - app/Jobs/ProfilePipeline/HandleUpdateActivity.php
  - app/Rules/ExpoPushTokenRule.php
  - app/Services/AutospamService.php
  - app/Services/CollectionService.php
  - app/Services/NotificationAppGatewayService.php
  - app/Services/WebfingerService.php
  - app/Util/ActivityPub/Helpers.php
2 weeks ago
Shlee 1e689461c0
Update LandingService.php 2 weeks ago
dansup cc5fbb860b
Merge pull request #6247 from pixelfed/shleeable-patch-10
Larastan: Update MediaPathService.php
2 weeks ago
dansup 8bc11914ad
Merge pull request #6246 from pixelfed/shleeable-patch-9
Larastan: Update MediaStorageService.php
2 weeks ago
Shlee ea39e52d49
Update MediaStorageService.php 2 weeks ago
Shlee b8660e46fc
Update MediaPathService.php 2 weeks ago
Shlee 81509c95de
Larastan: Update MediaPathService.php 2 weeks ago
Shlee 3d92562764
Larastan: Update MediaStorageService.php 2 weeks ago
Shlee b59443d5f5
Update ResilientMediaStorageService.php 2 weeks ago
Anil Kulkarni dbd2e17728
Ensure the cloud url is used when publishing a status to activitypub
Posting is done in two steps - first the media is uploaded and that begins a processing pipeline. When the media is finally
processed, the media pipeline sets the cdn_url to the final image (in the cloud if configured).
At any time, the user can click post. This begins a separate NewStatusPipeline to deliver the status over ActivityPub.
This causes a race. If the NewStatusPipeline runs before the media finishes processing, then the status is delivered with
the un-processed (and un-optimized images). If pixelfed is set to use cloud storage, then the ActivityPub message also incorrectly
uses the local media.

This commit fixes the race condition by waiting for all the media to be processed before sending the message over ActivityPub.
A new publish_delayed column is set per-post, indicating whether the
status should be delayed until all media is processed.

Then, the NewStatusPipeline is called twice per post -
When the media finishes processing and when the status is posted.

Both times, the pipeline will check to see if it's valid to post
If so, the pipeline will try to set publish_delayed to false
and only if it is the first time doing so, will it publish the post
1 month ago
Daniel Supernault 2e719bd008
Update media storage pipeline, improve support for non-local filesystems 2 months ago
Daniel Supernault f0bc9d66e4
Update InstanceService, fix total post count when config_cache is disabled 2 months ago
Daniel Supernault f37661e945
Update SanitizeService, improve tag coverage 2 months ago
Daniel Supernault a2c663d69c
Update SanitizeService 2 months ago
Daniel Supernault 3686c92122
Update Status storage, add SanitizerService to fix spacing in html stripped content 2 months ago
Daniel Supernault 03f44b8a28
Update StoryIndexService.php 3 months ago
Daniel Supernault 89e34f8f44
Update StoryIndexService, improve redis compatability 3 months ago
Daniel Supernault dbba523031
Update StoryIndexService, improve redis compatability 3 months ago
Daniel Supernault 53b74bf16c
Update StoryIndexService, improve predis/phpredis support 3 months ago
Daniel Supernault 564d8d1091
Update StoryIndexService, improve predis + phpredis support 3 months ago
Daniel Supernault e092917752
Update StoryIndexService, fix markSeen method 3 months ago
Daniel Supernault 3296a7a583
Update StoryIndexService, improve markSeen handling 3 months ago
Daniel Supernault 950fc0474c
Add StoryIndexService, an optimized fan-out-on-write service for story carousel generation/rendering 3 months ago
Daniel Supernault 86af73455f
Update DirectMessageController, add mutuals endpoint 3 months ago
Daniel Supernault bbc7f7b0d4
Fix race condition 4 months ago
Daniel Supernault d595963f51
Fix TransformImports command 4 months ago
Daniel Supernault a8d1d0f2eb
Update ImportService and TransformImports to fix race condition bug 4 months ago
Daniel Supernault ece23d751b
Update Places, improve cache invalidation/ttl 6 months ago
Daniel Supernault 449e374cbe
Update MediaService 6 months ago
Daniel Supernault 837014e06c
Update MediaService, improve activitypub format 6 months ago
Daniel Supernault 7ae61a74ac
Update CreateNote, improve media attachement handling by leveraging the MediaService cache 6 months ago
Daniel Supernault 2eb3957609
Lint 6 months ago
Daniel Supernault d0a3599834
Update MediaStorageService to clear the AP obj cache after S3 storage 6 months ago
Daniel Supernault ab9c13fe0d
New supported formats, Preserve ICC Color Profiles, libvips support
Update image pipeline to handle avif, heic and webp and preserve ICC color profiles and added libvips support.
6 months ago
daniel b3c2781578
Merge pull request #5608 from halkeye/add-generic-oidc
[Improvement] Generic OIDC Support
7 months ago
Daniel Supernault c72fa05299
Update LandingService and Config util to properly support the legal_notice setting 7 months ago
daniel 69e00d742d
Merge branch 'staging' into dev 7 months ago
Gavin Mogan ae39531ff2 field isnt accessTokenResourceOwnerId but responseResourceOwnerId 7 months ago
Gavin Mogan 441c8e0d4c Generic OIDC Support
* Everything should be configurable by env variables
* Basic request tests
7 months ago
Daniel Supernault c1f2dfb013
Update WebfingerService, apply banned domains to webfinger logic 7 months ago
Daniel Supernault 0a98b7ad20
Update SearchApiV2Service, fix offset bug. Fixes #5875 8 months ago