|
@@ -1225,13 +1225,14 @@ class Forum extends Base
|
|
|
$sel_where[] = ['t.reply_id',$type == 1 ? '=' :'>',0];
|
|
|
$list = ForumReplyComment::where($sel_where)
|
|
|
->alias('t')
|
|
|
- ->field('t.id,t.is_top,t.create_at,t.content,t.pid,t.forum_id,i.title,t.reply_id,t.is_deleted,i.level')
|
|
|
+ ->field('t.id,t.is_top,t.create_at,t.content,t.pid,t.forum_id,i.content title,t.reply_id,t.is_deleted,i.level')
|
|
|
->leftJoin('UserForum i', 't.forum_id = i.id')
|
|
|
->leftJoin('ForumReplyComment c', 'c.id = t.pid')
|
|
|
->order('t.id desc')
|
|
|
->limit($this->off_set, $this->page_num)
|
|
|
->select()->toArray();
|
|
|
foreach ($list as &$v) {
|
|
|
+ $v['title'] = strip_tags($v['title']);
|
|
|
$v['user_name'] = $this->user_info['name'];
|
|
|
$v['headimg'] = $this->user_info['headimg'];
|
|
|
$parent_comment = ForumReplyComment::where([['t.id', '=', $v['pid']]])
|