feat: add solved threads
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user