diff options
author | redmatrix <git@macgirvin.com> | 2016-03-30 16:39:08 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-03-30 16:39:08 -0700 |
commit | 4ba9a5ef75c05136627810622af1334fd5f8e2a1 (patch) | |
tree | e5c56ba0c55d34cf538c2a5662958df26f269e5c /mod/chatsvc.php | |
parent | 6a6dbec0335c43137e4dc5e84b5b188edc57ba10 (diff) | |
parent | df891f4ad2eee3b07bad73d703a46364dad03508 (diff) | |
download | volse-hubzilla-4ba9a5ef75c05136627810622af1334fd5f8e2a1.tar.gz volse-hubzilla-4ba9a5ef75c05136627810622af1334fd5f8e2a1.tar.bz2 volse-hubzilla-4ba9a5ef75c05136627810622af1334fd5f8e2a1.zip |
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'mod/chatsvc.php')
-rw-r--r-- | mod/chatsvc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/chatsvc.php b/mod/chatsvc.php index 44225e6dd..829fef6f8 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -109,14 +109,16 @@ function chatsvc_content(&$a) { switch($rr['cp_status']) { case 'away': $status = t('Away'); + $status_class = 'away'; break; case 'online': default: $status = t('Online'); + $status_class = 'online'; break; } - $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name'], status => $status); + $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name'], 'status' => $status, 'status_class' => $status_class); } } |