Update FollowPipeline

This commit is contained in:
Daniel Supernault 2024-09-30 05:13:18 -06:00
parent cc897bc427
commit 873031538d
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -92,7 +92,7 @@ class FollowPipeline implements ShouldQueue
if (PushNotificationService::check('follow', $target->id)) { if (PushNotificationService::check('follow', $target->id)) {
$user = User::whereProfileId($target->id)->first(); $user = User::whereProfileId($target->id)->first();
if ($user && $user->expo_token && $user->notify_enabled) { if ($user && $user->expo_token && $user->notify_enabled) {
FollowPushNotifyPipeline::dispatchSync($user->expo_token, $actor->username); FollowPushNotifyPipeline::dispatch($user->expo_token, $actor->username)->onQueue('pushnotify');
} }
} }
} }