🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 21:09:07 +01:00
parent 19269de238
commit c63995a6d5
2 changed files with 17 additions and 17 deletions
@@ -32,7 +32,7 @@ class WebsiteArticleReaction extends Model
static::creating(function ($model): void {
/** @var WebsiteArticleReaction $model */
$model->user_id = (int) (auth()->id() ?? 0);
$model->user_id = max(0, (int) (auth()->id() ?? 0));
});
}