mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Merge pull request #353 from pixelfed/frontend-ui-refactor
Update Status model
This commit is contained in:
commit
9dba310f2f
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@ class Status extends Model
|
|||
|
||||
public function bookmarked()
|
||||
{
|
||||
if(!Auth::check()) {
|
||||
return 0;
|
||||
}
|
||||
$profile = Auth::user()->profile;
|
||||
return Bookmark::whereProfileId($profile->id)->whereStatusId($this->id)->count();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue