diff --git a/app/Status.php b/app/Status.php index 5deb69951..abb1c4bba 100644 --- a/app/Status.php +++ b/app/Status.php @@ -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(); }