mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Status model
This commit is contained in:
parent
f15b8f8f5a
commit
fa8fbb7e86
2 changed files with 6 additions and 0 deletions
|
@ -407,4 +407,9 @@ class Status extends Model
|
|||
return $this->belongsTo(Place::class);
|
||||
}
|
||||
|
||||
public function directMessage()
|
||||
{
|
||||
return $this->hasOne(DirectMessage::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -508,6 +508,7 @@ class Inbox
|
|||
if(!$status) {
|
||||
return;
|
||||
}
|
||||
$status->directMessage()->delete();
|
||||
$status->media()->delete();
|
||||
$status->likes()->delete();
|
||||
$status->shares()->delete();
|
||||
|
|
Loading…
Reference in a new issue