Merge pull request #4007 from pixelfed/staging

Update FederationController
pull/4009/head
daniel 2022-12-24 05:57:53 -07:00 zatwierdzone przez GitHub
commit b0cf7fb2c4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -157,7 +157,7 @@ class FederationController extends Controller
if(isset($obj['object']) && isset($obj['object']['type']) && isset($obj['object']['id'])) {
if($obj['object']['type'] === 'Person') {
if(Profile::whereRemoteUrl($obj['object']['id'])->exists()) {
dispatch(new DeleteWorker($headers, $payload))->onQueue('delete');
dispatch(new DeleteWorker($headers, $payload))->onQueue('inbox');
return;
}
}
@ -170,7 +170,7 @@ class FederationController extends Controller
}
if($obj['object']['type'] === 'Story') {
dispatch(new DeleteWorker($headers, $payload))->onQueue('delete');
dispatch(new DeleteWorker($headers, $payload))->onQueue('story');
return;
}
}
@ -215,7 +215,7 @@ class FederationController extends Controller
if(isset($obj['object']) && isset($obj['object']['type']) && isset($obj['object']['id'])) {
if($obj['object']['type'] === 'Person') {
if(Profile::whereRemoteUrl($obj['object']['id'])->exists()) {
dispatch(new DeleteWorker($headers, $payload))->onQueue('delete');
dispatch(new DeleteWorker($headers, $payload))->onQueue('inbox');
return;
}
}
@ -228,7 +228,7 @@ class FederationController extends Controller
}
if($obj['object']['type'] === 'Story') {
dispatch(new DeleteWorker($headers, $payload))->onQueue('delete');
dispatch(new DeleteWorker($headers, $payload))->onQueue('story');
return;
}
}