Fixed removing from favorites
This commit is contained in:
parent
5d45d6da2c
commit
c7c5cde2b6
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@ class Model_User extends AbstractModel
|
||||||
|
|
||||||
public function hasFavorited($post)
|
public function hasFavorited($post)
|
||||||
{
|
{
|
||||||
foreach ($this->bean->ownFavoritee as $fav)
|
foreach ($this->bean->via('favoritee')->sharedPost as $favPost)
|
||||||
if ($fav->post->id == $post->id)
|
if ($favPost->id == $post->id)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue