Update StatusDelete.php

pull/6501/head
Shlee 5 months ago committed by GitHub
parent a73bbb12e2
commit 971050b134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -77,7 +77,7 @@ class StatusDelete implements ShouldQueue
return;
}
$profile = $status->profile;
$profile = $status->profile()->withTrashed()->first();
// Verify profile exists
if (! $profile) {
@ -178,10 +178,10 @@ class StatusDelete implements ShouldQueue
public function fanoutDelete($status)
{
$profile = $status->profile;
$profile = $status->profile()->withTrashed()->first();
if (! $profile) {
return;
return $this->unlinkRemoveMedia($status);
}
$audience = $status->profile->getAudienceInbox();

Loading…
Cancel
Save