Skip to content

Commit

Permalink
fix: mistakenly removed code
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Jan 11, 2025
1 parent b2f6b4c commit 33121ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/core/src/Discussion/Discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 33121ed

Please sign in to comment.