NOW MANAGED ON CODEBERG
Removed redundant null check
Dan Browne16bdf443ce6
diff --git a/app/Activity/Models/View.php b/app/Activity/Models/View.phpindex b593a7d27..30ead1193 100644--- a/app/Activity/Models/View.php+++ b/app/Activity/Models/View.php@@ -41,7 +41,7 @@ class View extends Modelpublic static function incrementFor(Viewable $viewable): int{$user = user();- if (is_null($user) || $user->isGuest()) {+ if ($user->isGuest()) {return 0;}