Update Inbox handler

pull/2155/head
Daniel Supernault 2020-04-29 15:35:48 -06:00
rodzic 3063eb249a
commit d0fefe242b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -311,6 +311,8 @@ class Inbox
$id = $this->payload['object']['id'];
switch ($type) {
case 'Person':
// todo: fix race condition
return;
$profile = Helpers::profileFetch($actor);
if(!$profile || $profile->private_key != null) {
return;
@ -327,8 +329,6 @@ class Inbox
break;
case 'Tombstone':
// todo: fix race condition
return;
$profile = Helpers::profileFetch($actor);
$status = Status::whereProfileId($profile->id)
->whereUri($id)