mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update StatusService, use BookmarkService for bookmarked state
This commit is contained in:
parent
ff4519bfaf
commit
a7d715517d
1 changed files with 1 additions and 4 deletions
|
@ -175,10 +175,7 @@ class StatusService
|
||||||
public static function isBookmarked($id, $pid = null)
|
public static function isBookmarked($id, $pid = null)
|
||||||
{
|
{
|
||||||
return $pid ?
|
return $pid ?
|
||||||
DB::table('bookmarks')
|
BookmarkService::get($pid, $id) :
|
||||||
->where('status_id', $id)
|
|
||||||
->where('profile_id', $pid)
|
|
||||||
->exists() :
|
|
||||||
false;
|
false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue