Skip to content

Commit

Permalink
Update InboxPipeline, dispatch Follow/Accept Follow jobs to follow queue
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Dec 13, 2022
1 parent 99a674b commit f62d249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 44 deletions.
6 changes: 5 additions & 1 deletion app/Jobs/InboxPipeline/InboxValidator.php
Expand Up @@ -78,7 +78,11 @@ public function handle()
}

if($this->verifySignature($headers, $profile, $payload) == true) {
ActivityHandler::dispatch($headers, $profile, $payload)->onQueue('inbox');
if(isset($payload['type']) && in_array($payload['type'], ['Follow', 'Accept']) ) {
ActivityHandler::dispatch($headers, $profile, $payload)->onQueue('follow');
} else {
ActivityHandler::dispatch($headers, $profile, $payload)->onQueue('inbox');
}
return;
} else {
return;
Expand Down
43 changes: 0 additions & 43 deletions app/Jobs/InboxPipeline/SharedInboxWorker.php

This file was deleted.

0 comments on commit f62d249

Please sign in to comment.