Commit Graph

171 Commits (dev)

Author SHA1 Message Date
Shlee 6959dd46db
Update StatusDelete.php 4 months ago
Shlee 1466d4ef7b
Update StatusDelete.php 4 months ago
Shlee 971050b134
Update StatusDelete.php 4 months ago
Shlee 16d374aa08
Update StatusLocalUpdateActivityPubDeliverPipeline.php 5 months ago
Shlee 6ff0c899f0
Update StatusActivityPubDeliver.php 5 months ago
Daniel Supernault 53742fa699
Lint 6 months ago
Your Name 45a9a3b472 RemoveUnreachableStatementRector 7 months ago
dansup 03e64efd68
Merge pull request #6231 from shleeable/JobBatchv1-StatusPipeline
JobBatch v1- Status pipelines defensive checks
8 months ago
Your Name efb9db3eed StatusPipeline defensive checks 8 months ago
Shlee f8fbf3a9d5
Bugfix: Regression in NewStatusPipeline.php 8 months ago
dansup 0b5ce910b8
Merge branch 'staging' into fix-delay-publish-until-media-processed 8 months ago
Anil Kulkarni 8737619b46
Revert "Update NewStatusPipeline, replaces #5706"
This reverts commit 6c13debd56.
8 months ago
Anil Kulkarni 5c6e3b9732
Revert "Update NewStatusPipeline, improve fallback"
This reverts commit 863ad8e107.
8 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
8 months ago
Anil Kulkarni d819012439
Revert "Update NewStatusPipeline, replaces #5706"
This reverts commit 6c13debd56.
8 months ago
Anil Kulkarni 1a245914d8
Revert "Update NewStatusPipeline, improve fallback"
This reverts commit 863ad8e107.
8 months ago
Daniel Supernault 3686c92122
Update Status storage, add SanitizerService to fix spacing in html stripped content 9 months ago
Daniel Supernault 4ab85248e9
Update RemoteStatusDelete, fix decrement logic 11 months ago
Daniel Supernault 863ad8e107
Update NewStatusPipeline, improve fallback 1 year ago
Daniel Supernault 6c13debd56
Update NewStatusPipeline, replaces #5706 1 year ago
Daniel Supernault decaa2596d
Fix curl 1 year ago
Daniel Supernault d516b7998f
Update StatusTagsPipeline, fix hashtag bug and formatting 1 year ago
Daniel Supernault 9eeb7b6741
Update Status caption logic, stop storing duplicate html caption in db and defer to cached StatusService rendering 2 years ago
Daniel Supernault 2910b61d21
Update RemoteStatusDelete.php 2 years ago
Daniel Supernault f3b596f0c8
Update RemoteStatusDeletePipeline 2 years ago
Daniel Supernault a76cb5f4f8
Update autospam config, use config_cache 2 years ago
Daniel Supernault 5071aaf408
Update activitpub setting, use config_cache() 2 years ago
Daniel Supernault d670de175e
Update media_types, use config_cache 2 years ago
Daniel Supernault fa97a1f38e
Update notification pipelines, fix non-local saving 2 years ago
Daniel Supernault b81ae5773f
Update AP helpers, refactor post count decrement logic 2 years ago
Daniel Supernault 1be21c76f3
Fix StatusHashtag delete bug 3 years ago
Daniel Supernault fcbcd7ec73
Update Delete pipelines, delete status hashtags quietly 3 years ago
Daniel Supernault 4c95306f12
Update StatusPipeline, fix Direct and Story notification deletion 3 years ago
Daniel Supernault f105f4e8f6
Update HomeFeedPipeline, fix tag filtering 3 years ago
Daniel Supernault c6a6b3ae30
Update Experimental Home Feed, fix remote posts, shares and reblogs 3 years ago
Daniel Supernault 386e64d5e8
Update StatusEntityLexer, skip reblogs on FeedInsertPipeline 3 years ago
Daniel Supernault ce63c4997b
Add Feed fanout 3 years ago
Daniel Supernault ce54d29c69
Update delete pipelines, properly invoke StatusHashtag delete events 3 years ago
Daniel Supernault c7b304ef20
Update http client 3 years ago
Daniel Supernault b76ad7cfe0
Update RemoteStatusDelete, fix include 3 years ago
Daniel Supernault f481f3d248
Update RemoteStatusDelete pipeline 3 years ago
Daniel Supernault edbcf3ed79
Update RemoteStatusDelete and DecrementPostCount pipelines 3 years ago
Daniel Supernault 79b378cdb1
Update StatusTagsPipeline, fix object tags slug query 3 years ago
Daniel Supernault 9989d6c66f
Update StatusTagsPipeline, fix object tags slug query 3 years ago
Daniel Supernault d295e6059b
Update StatusTagsPipeline, fix object tags and slug normalization 3 years ago
Daniel Supernault 33ed7a8c91
Add AdminShadowFilter feature 3 years ago
Daniel Supernault 618b67271a
Update RemoteStatusPipeline, fix reply check 3 years ago
Daniel Supernault fab8f25e9b
Update RemoteStatusDelete pipeline 3 years ago
Daniel Supernault 71e92261f4
Update RemoteStatusDelete pipeline 3 years ago
Daniel Supernault 45be6e10b8
Update RemoteStatusDelete pipeline 3 years ago