You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Services
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
11 months ago
..
Account Update snowflake config, allow custom datacenter/worker ids 2 years ago
Federation Add ActiveSharedInboxService, for efficient sharedInbox caching 2 years ago
Groups Update GroupActivityPubService.php 2 years ago
Internal Update config, allow Beagle discover service to be disabled 2 years ago
Media
…
Status Update Status caption logic, stop storing duplicate html caption in db and defer to cached StatusService rendering 2 years ago
AccountService.php Update ApiV1Controller, handle Moved accounts 2 years ago
ActivityPubDeliveryService.php
…
ActivityPubFetchService.php Update ActivityPubFetchService, reduce cache ttl from 1 hour to 7.5 mins and add uncached fetchRequest method 2 years ago
AdminSettingsService.php Add Authorized Fetch 2 years ago
AdminShadowFilterService.php
…
AdminStatsService.php AdminStatsService: do not count deleted users 2 years ago
AutolinkService.php Update AutolinkService, optimize lookups 2 years ago
AutospamService.php Update autospam config, use config_cache 3 years ago
AvatarService.php
…
BookmarkService.php
…
BouncerService.php
…
CollectionService.php
…
ConfigCacheService.php Add Authorized Fetch 2 years ago
CustomEmojiService.php Update CustomEmojiService, only return local emoji 2 years ago
DiscoverService.php
…
DomainService.php Update AP fetch service and domain service 2 years ago
EmailService.php
…
FetchCacheService.php
…
FilesystemService.php Update filesystems config, add to config_cache 3 years ago
FollowerService.php Update DirectMessageController, add mutuals endpoint 1 year ago
GroupFeedService.php Add groups models, controllers and services 2 years ago
GroupPostService.php Add groups models, controllers and services 2 years ago
GroupService.php Add groups models, controllers and services 2 years ago
HashidService.php
…
HashtagFollowService.php
…
HashtagRelatedService.php
…
HashtagService.php
…
HomeTimelineService.php
…
ImportService.php Fix race condition 1 year ago
InstanceService.php Update InstanceService, fix total post count when config_cache is disabled 1 year ago
LandingService.php Update LandingService and Config util to properly support the legal_notice setting 1 year ago
LikeService.php Update ApiV1Controller, fix max_id pagination on home and public timeline feeds 2 years ago
LiveStreamService.php
…
MarkerService.php
…
MediaBlocklistService.php
…
MediaPathService.php
…
MediaService.php Update MediaService 1 year ago
MediaStorageService.php Ensure the cloud url is used when publishing a status to activitypub 11 months ago
MediaTagService.php
…
ModLogService.php
…
NetworkTimelineService.php
…
NodeinfoService.php Lint 2 years ago
NotificationAppGatewayService.php Update NotificationAppGatewayService 2 years ago
NotificationService.php
…
PlaceService.php Update Places, improve cache invalidation/ttl 1 year ago
PollService.php
…
ProfileService.php
…
ProfileStatusService.php
…
PronounService.php Update PronounService.php with it its pronouns 2 years ago
PublicTimelineService.php
…
PushNotificationService.php Fix notifications not being delivered by directly checking the state from the database 2 years ago
ReblogService.php Update ReblogService, fix cache sync issues 2 years ago
RelationshipService.php Update ApiV1Controller, fix relationship fields. Fixes #5900 1 year ago
ResilientMediaStorageService.php
…
SanitizeService.php Update SanitizeService, improve tag coverage 1 year ago
SearchApiV2Service.php Update SearchApiV2Service, fix offset bug. Fixes #5875 1 year ago
SnowflakeService.php Update snowflake config, allow custom datacenter/worker ids 2 years ago
StatusHashtagService.php
…
StatusLabelService.php
…
StatusMentionService.php
…
StatusService.php Fix pinned posts implementation 1 year ago
StoryIndexService.php Update StoryIndexService.php 1 year ago
StoryService.php
…
SuggestionService.php
…
TrendingHashtagService.php
…
UserFilterService.php
…
UserOidcService.php field isnt accessTokenResourceOwnerId but responseResourceOwnerId 1 year ago
UserRoleService.php
…
UserStorageService.php Add UserStorageService 2 years ago
WebfingerService.php Update WebfingerService, apply banned domains to webfinger logic 1 year ago