mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix coins not being spent during gift sending
Signed-off-by: Celestora <kitsuruko@gmail.com>
This commit is contained in:
parent
5b24aa9494
commit
e4706f9c90
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ final class GiftsPresenter extends OpenVKPresenter
|
|||
$notification = new GiftNotification($user, $this->user->identity, $gift, $comment);
|
||||
$notification->emit();
|
||||
$this->user->identity->setCoins($coinsLeft);
|
||||
$this->user->identity->save();
|
||||
$user->gift($this->user->identity, $gift, $comment, !is_null($this->postParam("anonymous")));
|
||||
$gift->used();
|
||||
|
||||
|
|
Loading…
Reference in a new issue