mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
Update AP Inbox, fix delete handling
This commit is contained in:
parent
361d5f0374
commit
2800c8886a
2 changed files with 3 additions and 3 deletions
|
@ -479,8 +479,8 @@ class Helpers {
|
||||||
'profile_id' => $pid,
|
'profile_id' => $pid,
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'object_url' => $id,
|
'object_url' => $id,
|
||||||
'caption' => strip_tags($activity['content']),
|
'caption' => isset($activity['content']) ? Purify::clean(strip_tags($activity['content'])) : null,
|
||||||
'rendered' => Purify::clean($activity['content']),
|
'rendered' => isset($activity['content']) ? Purify::clean($activity['content']) : null,
|
||||||
'created_at' => Carbon::parse($ts)->tz('UTC'),
|
'created_at' => Carbon::parse($ts)->tz('UTC'),
|
||||||
'in_reply_to_id' => $reply_to,
|
'in_reply_to_id' => $reply_to,
|
||||||
'local' => false,
|
'local' => false,
|
||||||
|
|
|
@ -698,7 +698,7 @@ class Inbox
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$status = Status::whereProfileId($profile->id)
|
$status = Status::whereProfileId($profile->id)
|
||||||
->whereUri($id)
|
->whereObjectUrl($id)
|
||||||
->first();
|
->first();
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue