mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix bug that corrupted DB after post deletion
This commit is contained in:
parent
48a2040322
commit
11b4f0b16a
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ final class WallPresenter extends OpenVKPresenter
|
|||
if(!is_null($user)) {
|
||||
if($post->getOwnerPost() == $user || $post->getTargetWall() == $user || $canBeDeletedByOtherUser) {
|
||||
$post->unwire();
|
||||
$post->delete(false);
|
||||
$post->delete();
|
||||
}
|
||||
} else {
|
||||
$this->flashFail("err", "Не удалось удалить пост", "Вы не вошли в аккаунт.");
|
||||
|
|
Loading…
Reference in a new issue