Fixed post deleting
This commit is contained in:
parent
17cc4e7947
commit
1a8568392f
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ class HistoryService
|
|||
public function getPostDeleteSnapshot(\Szurubooru\Entities\Post $post)
|
||||
{
|
||||
$snapshot = $this->getPostSnapshot($post);
|
||||
$snapshot->setData([]);
|
||||
$snapshot->setOperation(\Szurubooru\Entities\Snapshot::OPERATION_DELETE);
|
||||
return $snapshot;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue