|
@@ -819,8 +819,10 @@ class ChatService implements ChatServiceInterface
|
|
|
$result = ChatTopic::where($where)
|
|
|
->leftJoin('user', 'user.id', '=', 'chat_topics.user_id')
|
|
|
->leftJoin('chat_topics_reply', 'chat_topics.id', '=', 'chat_topics_reply.topic_id')
|
|
|
+ ->leftJoin('chat_topic_class', 'chat_topics.type', '=', 'chat_topic_class.id')
|
|
|
->select(
|
|
|
'chat_topics.*',
|
|
|
+ 'chat_topic_class.topicname as type_name',
|
|
|
'user.nickname',
|
|
|
'user.avatar',
|
|
|
'user.user_name',
|