mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update AP helpers, remove tombstone support until race condition fixed
This commit is contained in:
parent
ed5667c8ff
commit
9661b7788c
2 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,7 @@ class Helpers {
|
||||||
$activity = ['object' => $res];
|
$activity = ['object' => $res];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($res['content']) == false) {
|
if(isset($activity['object']['content']) == false) {
|
||||||
abort(400, 'Invalid object');
|
abort(400, 'Invalid object');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -323,6 +323,8 @@ 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)
|
||||||
|
|
Loading…
Reference in a new issue