From 96176578dd683c19da51fb7ab155c436ea403bac Mon Sep 17 00:00:00 2001 From: Christian Holladay Date: Wed, 27 Dec 2023 14:26:22 -0600 Subject: [PATCH] Add strike and suspend events --- app/Models/User.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index a038423..0e2540d 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -168,8 +168,6 @@ public function suspend(int $days = 7, string $reason = 'No reason provided.') 'reason' => $reason, 'expires_at' => $days > 0 ? now()->addDays($days) : null, ]); - - //TODO: send out emails, notifications, and restrict access } public function strikes() @@ -180,7 +178,6 @@ public function strikes() public function addStrike($days = 7, $reason = 'No reason provided.') { Strike::create(['user_id' => $this->id, 'reason' => $reason, 'expires_at' => now()->addDays(7)]); - //TODO: send out emails, notifications } public function gallery(): HasMany