mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +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(!is_null($user)) {
|
||||||
if($post->getOwnerPost() == $user || $post->getTargetWall() == $user || $canBeDeletedByOtherUser) {
|
if($post->getOwnerPost() == $user || $post->getTargetWall() == $user || $canBeDeletedByOtherUser) {
|
||||||
$post->unwire();
|
$post->unwire();
|
||||||
$post->delete(false);
|
$post->delete();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->flashFail("err", "Не удалось удалить пост", "Вы не вошли в аккаунт.");
|
$this->flashFail("err", "Не удалось удалить пост", "Вы не вошли в аккаунт.");
|
||||||
|
|
Loading…
Reference in a new issue