feat: add solved threads
All checks were successful
CI/CD Pipeline / test (push) Successful in 3s
CI/CD Pipeline / deploy (push) Successful in 26s

This commit is contained in:
2026-01-24 14:11:55 +01:00
parent e3dcf99362
commit 2409feb06f
11 changed files with 161 additions and 3 deletions

View File

@@ -99,6 +99,7 @@ class PortalController extends Controller
'id' => $thread->id,
'title' => $thread->title,
'body' => $thread->body,
'solved' => (bool) $thread->solved,
'forum' => "/api/forums/{$thread->forum_id}",
'user_id' => $thread->user_id,
'posts_count' => ($thread->posts_count ?? 0) + 1,