Explorar o código

Update StatusService, use BookmarkService for bookmarked state

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
a7d715517d
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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;
 	}
 }