Unify portal thread rows and add summary API
This commit is contained in:
@@ -128,6 +128,7 @@ class ThreadController extends Controller
|
||||
: null,
|
||||
'last_post_at' => $thread->latestPost?->created_at?->toIso8601String()
|
||||
?? $thread->created_at?->toIso8601String(),
|
||||
'last_post_id' => $thread->latestPost?->id,
|
||||
'last_post_user_id' => $thread->latestPost?->user_id ?? $thread->user_id,
|
||||
'last_post_user_name' => $thread->latestPost?->user?->name
|
||||
?? $thread->user?->name,
|
||||
|
||||
Reference in New Issue
Block a user