Commit Graph

4007 Commits (6db25c70276ea5510e2221d452bf138c164ff20f)

Author SHA1 Message Date
Shlee 81509c95de
Larastan: Update MediaPathService.php 2 weeks ago
Shlee 3d92562764
Larastan: Update MediaStorageService.php 2 weeks ago
Shlee 6475b22e2e
Larastan: Update Profile.php missing "use App\Avatar;" 2 weeks ago
Shlee d1defe35e5
Update ImageS3UploadPipeline.php 2 weeks ago
Shlee b59443d5f5
Update ResilientMediaStorageService.php 2 weeks ago
Shlee a647ad435c
Larastan: Update UndoSharePipeline.php (Undefined variable: $status) 2 weeks ago
Shlee 67cc88eb90
Update Status.php - Missing use App\Models\Conversation; 2 weeks ago
Shlee 3b8f13784b
Update Bouncer.php - Called 'count' on Laravel collection, but could have been retrieved as a query. 🪪 larastan.noUnnecessaryCollectionCall 2 weeks ago
Shlee 4f0f2f5d65
Update Site/Config.php - config_cache only has 1 arg. No fallback. 2 weeks ago
Shlee 535a8990b0
Update MentionPushNotifyPipeline.php 2 weeks ago
Shlee bffab96eaf
Update LikePushNotifyPipeline.php 2 weeks ago
Shlee e89d15cb90
Update FollowPushNotifyPipeline.php 2 weeks ago
Shlee fead07e092
Update RemoteFollowPipeline.php 2 weeks ago
Shlee 451967527b
Update MoveSendUndoFollowPipeline.php 2 weeks ago
Shlee a8c29ffd8a
Update MentionPushNotifyPipeline.php 2 weeks ago
Shlee 82737236e1
Update FollowPushNotifyPipeline.php 2 weeks ago
Shlee 557e8fa1cb
Update LikePushNotifyPipeline.php 2 weeks ago
Shlee 11596618b8
Update FollowPushNotifyPipeline.php 2 weeks ago
Shlee 604ca31cc0
Update CommentPipeline.php 2 weeks ago
Your Name 4bbabfffb9 Misc pipelines defensive checks 2 weeks ago
Your Name f5ff65ffc7 ImageOptimizePipeline defensive checks 2 weeks ago
Your Name fe63326479 FollowPipeline defensive checks 2 weeks ago
Your Name b8d800869e LikePipeline defensive checks 2 weeks ago
Your Name ee9a875c27 PushNotificationPipeline defensive checks 2 weeks ago
Your Name 2d0a575391 MediaPipeline defensive checks 2 weeks ago
Your Name 157eae101c InboxPipeline defensive checks 2 weeks ago
Your Name 4122653707 DeletePipeline defensive checks 2 weeks ago
Your Name f23e970587 HomeFeedPipeline defensive checks 2 weeks ago
Your Name efb9db3eed StatusPipeline defensive checks 2 weeks ago
Shlee 39d9832aef
Update LikePipeline.php (#6227) 2 weeks ago
Shlee f8fbf3a9d5
Bugfix: Regression in NewStatusPipeline.php 2 weeks ago
dansup 59cccb1a25
Merge pull request #6223 from intentionally-left-nil/fix-update-no-shared-inbox
Fix null dereference error when updating the sharedInbox
3 weeks ago
dansup f2e4715749
Merge pull request #6194 from emlove/migration
Account Migration fixes
3 weeks ago
dansup 1586808b11
Merge pull request #6189 from rossbearman/admin-invites
Admin web interface for creating and expiring invites; add invitation emails
3 weeks ago
dansup 0b5ce910b8
Merge branch 'staging' into fix-delay-publish-until-media-processed 3 weeks ago
Anil Kulkarni 2f6c6830ea
Fix null dereference error when updating the sharedInbox for actor
updates.

The old code assumes that all update messages have an endpoints key.
However, both the endpoints key, as well as the sharedInbox may be
missing or null per spec. This commit fixes the bug by using isset to
check for the key to exist, otherwise coalescing it to null

server to server update messages are PUT operations, not PATCH,
so if the sharedInbox is missing in the update, it should always be
removed (if previously set)
3 weeks ago
Anil Kulkarni 8737619b46
Revert "Update NewStatusPipeline, replaces #5706"
This reverts commit 6c13debd56.
1 month ago
Anil Kulkarni 5c6e3b9732
Revert "Update NewStatusPipeline, improve fallback"
This reverts commit 863ad8e107.
1 month 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
Anil Kulkarni d819012439
Revert "Update NewStatusPipeline, replaces #5706"
This reverts commit 6c13debd56.
1 month ago
Anil Kulkarni 1a245914d8
Revert "Update NewStatusPipeline, improve fallback"
This reverts commit 863ad8e107.
1 month ago
Daniel Supernault 76b5601a01
Update IG Import
To support non-local fs
1 month ago
Daniel Supernault 03d01d296f
Update StoryComposeController.php
Fix non-local storage bug
1 month ago
Daniel Supernault 02455129a5
Update StoryComposeController.php
Fix support for non-local fs
1 month ago
Emily Love Watson e645008ad5
More precise 1 month ago
Emily Love Watson 7709d5da29
Cleanup 1 month ago
Emily Love Watson 49b0a7358e
Update follower records 1 month ago
Emily Love Watson 2052d618e8
Cleanup legacy follower count 1 month ago
Emily Love Watson 2272c3ec01
Cleanup 1 month ago
Emily Love Watson 871efff1a8
Remove unused params 1 month ago
Emily Love Watson 74bf7e45c8
Restore follower count logic 1 month ago
Emily Love Watson 451d59cb7c
fixies 1 month ago
Emily Love Watson a07f3595d8
More cleanup 1 month ago
Emily Love Watson 453ae4b32e
MVP migration 1 month ago
Ross Bearman db03733415 Add admin invite interface and email support
This commit does two things:

* Add invite email support to AdminInviteCommand
  - Moves `invite_code` generation to AdminInvite model `creating` event
* Add admin invite management section under admin users dashboard
  - Adds `Admin/AdminUserInviteController` and associated `home` and
    `create` Blade templates.
  - Adds "Invites" button to admin user dashboard
2 months 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 ec21eec508
Update ApiV1Dot1Controller, fix Story report follower check 3 months ago
Daniel Supernault f195102b34
Update StoryApiV1Controller, reduce min story size to 10kb 3 months ago
Daniel Supernault 5d4674daa4
Update ApiV1StoryController, fix viewer pagination
Fix cursor pagination
3 months ago
(dan)iel (sup)ernault 2e0b3829a3
Merge pull request #6081 from eufelipemateus/adjust-oderby-statuses-profile
fix: ordery by statutes profile
3 months ago
Daniel Supernault e2a64c730e
Update StoryRotateMedia job, handle StoryIndexService cache invalidation 3 months ago
Daniel Supernault 03f44b8a28
Update StoryIndexService.php 3 months ago
Daniel Supernault 1e31470282
Update StoryFetch, fix mass assignment bug preventing proper model creation 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 32b1f26d69
Update StoryApiV1Controller, update error messsage 3 months ago
Daniel Supernault 8fb44e3162
Update StoryApiV1Controller, improve text overlay validation regex for improved support 3 months ago
Daniel Supernault 53b74bf16c
Update StoryIndexService, improve predis/phpredis support 3 months ago
Daniel Supernault 76d9ded694
Update StoryApiV1Controller, add missing validation rule 3 months ago
Daniel Supernault 564d8d1091
Update StoryIndexService, improve predis + phpredis support 3 months ago
Daniel Supernault 6c701b335d
Update StoryComposeController, add StoryIndexService 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 97badbbdd6
Update StoryApiV1Controller, add new v1.2 endpoints 3 months ago
Daniel Supernault 44914a5143
Update StoryController, add StoryIndexService s markSeen support for webUI endpoint 3 months ago
Daniel Supernault 5a263e89e3
Update StoryExpire pipeline job, add StoryIndexService removeStory support 3 months ago
Daniel Supernault fd3df358b9
Update StoryFetch pipeline job, make more robust and add StoryIndexStory indexStory support 3 months ago
Daniel Supernault ab8d0ff46c
Update AP Inbox, handle Story View with the new StoryIndexService markSeen method 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 d361b0dca0
Update StoryView resource, include viewed_at timestamp 3 months ago
Daniel Supernault fefbbee83f
Update Story model 3 months ago
Daniel Supernault f5dced0f7a
Update ApiV1Dot1Controller, add story report support 3 months ago
Daniel Supernault 35424ccb4d
Update HomeSettings, remove unnecessary relation query 3 months ago
Daniel Supernault 9eef882adc
Update Story model 3 months ago
Daniel Supernault 86af73455f
Update DirectMessageController, add mutuals endpoint 3 months ago
Daniel Supernault d42c25ca64
Update DiscoverController 3 months ago
Daniel Supernault c65052c04c
Remove AvatarSync command. Fixes #5833 3 months ago
Daniel Supernault e3f9b1bc9e
Remove MediaReplaceDomainCommand. Fixes #5835 3 months ago
Daniel Supernault 506fe14c11
Update MediaCloudUrlRewrite command, add avatar support. Fixes #6069 3 months ago
Daniel Supernault c319dfbcc4
Update AppRegister controller, add scheduled cleanup task to delete older than 90d 3 months ago
Daniel Supernault 3977137d02
Update AppRegisterController 3 months ago
Felipe Mateus 11a5fa9314
fix: ordery by 4 months ago
Daniel Supernault 062ec55207
Update DangerZone middleware to skip sudo mode for OIDC configurations. Fixes #6057 4 months ago
Daniel Supernault e56bcf3853
Update ComposeController, fix postgres operator 4 months ago
Daniel Supernault 4ab85248e9
Update RemoteStatusDelete, fix decrement logic 4 months ago
Daniel Supernault 2a9c28b81e
Update ComposeController, fix user tagging endpoint 4 months ago
Daniel Supernault 10eb1a8acb
Update ComposeController, prioritize followed users and follower_count first 4 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 c692c7655e
Update TransformImports command 4 months ago
Daniel Supernault b6bc1e50e2
Update Admin Users dashboard 5 months ago
Daniel Supernault 56f909a61b
Update ComposeController, add addl compose settings data 6 months ago
Daniel Supernault 1cb01545bc
Update ComposeController, add addl compose settings data 6 months ago
Daniel Supernault 9048ab52c2
Update ComposeController, add addl compose settings data 6 months ago
Daniel Supernault 1c66cf7fef
Update CuratedRegisterController 6 months ago
Daniel Supernault 115900c7a7
Update Webfinger.php 6 months ago
Daniel Supernault ece23d751b
Update Places, improve cache invalidation/ttl 6 months ago
Daniel Supernault f81a4acdc6
Update PlaceController, fix show method 6 months ago
Daniel Supernault 616e37066d
Update Groups ImageResizePipeline with intervention/image v3 support 6 months ago
Daniel Supernault 9d89425e62
Update StoryController, fix intervention/image 6 months ago
Daniel Supernault 86fbeeec35
Update StoryComposeController, fix intervention/image v3 support 6 months ago
Daniel Supernault 0dff48adb3
Update MediaTransformer, return proper image type 6 months ago
Daniel Supernault 7f7387ee4d
Update StatusController, fix mimeTypeCheck 6 months ago
Daniel Supernault 449e374cbe
Update MediaService 6 months ago
Daniel Supernault 7d7a60dceb
Update Status model 6 months ago
Daniel Supernault 837014e06c
Update MediaService, improve activitypub format 6 months ago
Daniel Supernault 51ce7e1f04
Update ActivityPub attachements, use Document type by default 6 months ago
Daniel Supernault 7ae61a74ac
Update CreateNote, improve media attachement handling by leveraging the MediaService cache 6 months ago
Daniel Supernault 4747266b04
Update ApiV1Controller, fix cache invalidation order 6 months ago
Daniel Supernault ae47ba73d6
Update ComposeController, fix cache invalidation order 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 6a7307104e
Update CreateNote to use cached MediaService attachments 6 months ago
Daniel Supernault bb16c95b1f
Update HttpSignatures, auto generate instance actor if missing 6 months ago
Daniel Supernault b303f90978
Update FixMissingUserProfile.php 6 months ago
Daniel Supernault 91b15a9dfa
Update FixMissingUserProfile.php 6 months ago
Daniel Supernault cd817009d3
Create FixMissingUserProfile.php 6 months ago
daniel 2b4bccdfb1
Merge pull request #5972 from intentionally-left-nil/fix-id-domain-mismatch
Fix id domain mismatch
6 months ago
Daniel Supernault 4e938a8ffa
Fix heic, avif, webp support and add libvips driver 6 months ago
Daniel Supernault 86bb81d1a9
Fix typo 6 months ago
Daniel Supernault 5c7064063d
Typo 6 months ago
Daniel Supernault 27953d0969
FIx AvatarOptimize job 6 months ago
Daniel Supernault cb80c65995
Fix tests 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
Anil Kulkarni e3b7f1d7cd
For an ActivityStream object, such as a note, the code currently validates
the domain of the object id, matches the domain of the object url.
However, the current implementation of threads has objects where the id is
threads.net/ap/... and the url is www.threads.com/...
The AS spec does not guarantee any particular relationship between the
id and url. The only requirement is that the id is globally unique.
Additionally, mastodon also does not appear to require the domains to
match
6 months ago
Daniel Supernault 5a3a1cf76c
Update remove_from_followers api endpoint 7 months ago
daniel 92482c24cd
Merge pull request #5895 from eufelipemateus/feat-remove-follow
[Improvement] Add button remove follow
7 months ago
Daniel Supernault 26887c7672
Update OIDC config with comments, and disable tests as we dont have db tests configured 7 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 70584b47c5 Fixes for items highlighted by review.ai
* Consider using `hash_equals()` instead of `==` when comparing the state values to prevent timing attacks:
`abort_unless(hash_equals($request->input('state'), $request->session()->pull('oauth2state')), 400, 'invalid
state');`
* For better data integrity, consider adding a foreign key constraint to the user_id column: `$table-
>foreign('user_id')->references('id')->on('users')->onDelete('cascade');`
* Does the OIDC provider guarantee that the username field exists in the userInfo data? Consider adding a
null check or fallback: `$userInfoData[config('remote-auth.oidc.field_username')] ?? null`
7 months ago
Gavin Mogan 441c8e0d4c Generic OIDC Support
* Everything should be configurable by env variables
* Basic request tests
7 months ago
Mackenzie Morgan 9966260a91 use case insensitive search when tagging accounts 7 months ago