Merge pull request #2153 from pixelfed/staging

Update AP helpers, remove tombstone support until race condition fixed
pull/2158/head
daniel 5 years ago committed by GitHub
commit cc67bd9812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -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)

Loading…
Cancel
Save