Update AP Inbox, fix delete handling

This commit is contained in:
Daniel Supernault 2023-05-23 02:54:02 -06:00
parent 361d5f0374
commit 2800c8886a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 3 deletions

View file

@ -479,8 +479,8 @@ class Helpers {
'profile_id' => $pid,
'url' => $url,
'object_url' => $id,
'caption' => strip_tags($activity['content']),
'rendered' => Purify::clean($activity['content']),
'caption' => isset($activity['content']) ? Purify::clean(strip_tags($activity['content'])) : null,
'rendered' => isset($activity['content']) ? Purify::clean($activity['content']) : null,
'created_at' => Carbon::parse($ts)->tz('UTC'),
'in_reply_to_id' => $reply_to,
'local' => false,

View file

@ -698,7 +698,7 @@ class Inbox
return;
}
$status = Status::whereProfileId($profile->id)
->whereUri($id)
->whereObjectUrl($id)
->first();
if(!$status) {
return;