Commit Graph

524 Commits (f2db3fcf02318ca29c59331e46c50fe1d4d91625)

Author SHA1 Message Date
Daniel Supernault 344f4dfaad
Revert 2 changes that broke Hashtag Following 3 months ago
dansup e6697da7e2
Merge pull request #6499 from pixelfed/shleeable-patch-10
Profiles Mutual followers Redis keys never expire. Fixed memory leak.
4 months ago
dansup cb26e1831a
Merge pull request #6498 from pixelfed/shleeable-patch-9
zcard > 0 incorrectly implies the cache is fully warmed
4 months ago
dansup 14580993d2
Merge pull request #6474 from pixelfed/shleeable-patch-3
Add additional logging to NodeinfoService.php
4 months ago
dansup edcda57e7a
Merge pull request #6387 from rm-yakovenko/issues/6376
[Server Bug]: app.logo is not used in code
4 months ago
Daniel Supernault 9d60db5a63
Update SearchApiV2Service 4 months ago
Shlee 2b50576336
Update FollowerService.php 5 months ago
Shlee dec42a04d8
Update HashtagFollowService.php 5 months ago
Shlee 9d343fa027
Update NodeinfoService.php 5 months ago
dansup 416c02e2b8
Merge pull request #6453 from pixelfed/a4
bugfix: Partial status updates nullify omitted caption/CW causing data loss)
5 months ago
Your Name 995a53b4ef fix 5 months ago
Shlee 4f7f2b2259
Update HashtagFollowService.php 5 months ago
dansup 7a17a6735a
Merge pull request #6437 from pixelfed/shleeable-patch-21
Update FetchCacheService.php - Cache put/get keys.
6 months ago
dansup a7c1ebc59b
Merge pull request #6436 from pixelfed/shleeable-patch-20
TypeCheck: ConfigCacheService::get check should be more specific.
6 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
6 months ago
Shlee ff1406d6bc
Update FetchCacheService.php 6 months ago
Shlee e38913369f
Update ConfigCacheService.php 6 months ago
Shlee eac489e856
Update BouncerService.php 6 months ago
Shlee 21b9ab0112
Update CustomEmojiService.php 6 months ago
Rm Yakovenko a63dbd8436 [Server Bug]: app.logo is not used in code 6 months ago
Daniel Supernault 53742fa699
Lint 7 months ago
Daniel Supernault 0c90ca133d
Update PushNotificationService 7 months ago
Severin 228585d94e
Update PushNotificationService.php to include reblogs 8 months ago
Shlee 836d0387d1
Update GroupActivityPubService.php 8 months ago
Your Name 45a9a3b472 RemoveUnreachableStatementRector 8 months ago
dansup 7881b09c2f
Merge pull request #6304 from pixelfed/classV2
Larastan: Fix Missing classes 2 - Medium risk
8 months ago
dansup 14d5fe940e
Merge pull request #6302 from pixelfed/miscClosureUnusedUseV2
Larastan: fix Unused Use - Low risk
8 months ago
dansup bacc8bc134
Merge pull request #6300 from pixelfed/argumentsV1
Larastan: Fix too many arguments - Medium risk
8 months ago
dansup f9d430d6e6
Merge pull request #6299 from pixelfed/classNotFoundV1
Larastan: Fix Missing classes - Low risk
8 months ago
dansup 6df58e67f2
Merge pull request #6290 from pixelfed/emptyv1
Larastan: 'empty() always exists and is not falsy' errors - Low risk
8 months ago
Your Name 15cc07e602 Fix all class.notFound PHPStan issues - 31 fixes 9 months ago
Your Name 28ed625f12 Fix PHPStan closure.unusedUse issues - 7 fixes 9 months ago
Your Name b5c6984689 Fix PHPStan arguments.count issues 9 months ago
Your Name ca6c875bbb Fix PHPStan class.notFound issues 9 months 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
9 months ago
Shlee 1e689461c0
Update LandingService.php 9 months ago
dansup cc5fbb860b
Merge pull request #6247 from pixelfed/shleeable-patch-10
Larastan: Update MediaPathService.php
9 months ago
dansup 8bc11914ad
Merge pull request #6246 from pixelfed/shleeable-patch-9
Larastan: Update MediaStorageService.php
9 months ago
Shlee ea39e52d49
Update MediaStorageService.php 9 months ago
Shlee b8660e46fc
Update MediaPathService.php 9 months ago
Shlee 81509c95de
Larastan: Update MediaPathService.php 9 months ago
Shlee 3d92562764
Larastan: Update MediaStorageService.php 9 months ago
Shlee b59443d5f5
Update ResilientMediaStorageService.php 9 months 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
9 months ago
Daniel Supernault 2e719bd008
Update media storage pipeline, improve support for non-local filesystems 10 months ago
Daniel Supernault f0bc9d66e4
Update InstanceService, fix total post count when config_cache is disabled 10 months ago
Daniel Supernault f37661e945
Update SanitizeService, improve tag coverage 10 months ago
Daniel Supernault a2c663d69c
Update SanitizeService 10 months ago
Daniel Supernault 3686c92122
Update Status storage, add SanitizerService to fix spacing in html stripped content 10 months ago
Daniel Supernault 03f44b8a28
Update StoryIndexService.php 11 months ago