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