Update StatusService, use BookmarkService for bookmarked state

This commit is contained in:
Daniel Supernault 2022-01-28 20:57:25 -07:00
parent ff4519bfaf
commit a7d715517d
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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;
} }
} }