Update AP helpers, remove tombstone support until race condition fixed

This commit is contained in:
Daniel Supernault 2020-04-29 12:55:08 -06:00
parent ed5667c8ff
commit 9661b7788c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 1 deletions

View file

@ -236,7 +236,7 @@ class Helpers {
$activity = ['object' => $res];
}
if(isset($res['content']) == false) {
if(isset($activity['object']['content']) == false) {
abort(400, 'Invalid object');
}

View file

@ -323,6 +323,8 @@ class Inbox
break;
case 'Tombstone':
// todo: fix race condition
return;
$profile = Helpers::profileFetch($actor);
$status = Status::whereProfileId($profile->id)
->whereUri($id)