From 33121ed1cc260bf967f0b8c4d10ab5099410bac0 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 11 Jan 2025 10:09:46 +0100 Subject: [PATCH] fix: mistakenly removed code --- framework/core/src/Discussion/Discussion.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/src/Discussion/Discussion.php b/framework/core/src/Discussion/Discussion.php index 7cfb7699e3..87d88ff6d2 100644 --- a/framework/core/src/Discussion/Discussion.php +++ b/framework/core/src/Discussion/Discussion.php @@ -121,6 +121,10 @@ public static function start(?string $title, User $user, ?self $model = null): s { $discussion = $model ?? new static; + if ($title) { + $discussion->title = $title; + } + $discussion->created_at = Carbon::now(); $discussion->user_id = $user->id;