Fixed removing from favorites
This commit is contained in:
parent
23f430f41c
commit
79b51d31e5
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ class PostController
|
|||
if ($finalKey === null)
|
||||
throw new SimpleException('Not in favorites');
|
||||
|
||||
unset ($post->ownFavoritee[$key]);
|
||||
unset ($post->ownFavoritee[$finalKey]);
|
||||
R::store($post);
|
||||
$this->context->transport->success = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue