Browse Source

Update StatusService, use BookmarkService for bookmarked state

Daniel Supernault 3 years ago
parent
commit
a7d715517d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/Services/StatusService.php

+ 1 - 4
app/Services/StatusService.php

@@ -175,10 +175,7 @@ class StatusService
 	public static function isBookmarked($id, $pid = null)
 	{
 		return $pid ?
-			DB::table('bookmarks')
-				->where('status_id', $id)
-				->where('profile_id', $pid)
-				->exists() :
+			BookmarkService::get($pid, $id) :
 			false;
 	}
 }