|
@@ -50,7 +50,7 @@ class Chat
|
|
|
$where['uid'] = $v['uid'];
|
|
|
$where['collection_id'] = $collection_id;
|
|
|
$chat = Dever::db('community/chat_info')->getNew($where);
|
|
|
- $user[$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id);
|
|
|
+ $user[$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id, true);
|
|
|
|
|
|
if ($chat) {
|
|
|
if ($chat['pic'] && !$chat['text']) {
|
|
@@ -80,8 +80,8 @@ class Chat
|
|
|
$data['chat'] = Dever::db('community/chat_info')->getAll($where);
|
|
|
|
|
|
if ($data['chat']) {
|
|
|
- $data['user'][$uid] = Dever::load('user/lib/info')->get($uid, $collection_id);
|
|
|
- $data['user'][$to_uid] = Dever::load('user/lib/info')->get($to_uid, $collection_id);
|
|
|
+ $data['user'][$uid] = Dever::load('user/lib/info')->get($uid, $collection_id, true);
|
|
|
+ $data['user'][$to_uid] = Dever::load('user/lib/info')->get($to_uid, $collection_id, true);
|
|
|
$data['title'] = $data['user'][$to_uid]['username'];
|
|
|
foreach ($data['chat'] as $k => $v) {
|
|
|
$data['chat'][$k]['date'] = Dever::load('collection/lib/times')->getDate($v['day'], $v['cdate'], $times);
|