aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirprofile.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-29 14:07:25 +0100
committerMichael Meer <michael@meer.name>2014-01-29 14:07:25 +0100
commitac8d481a3223335050a7f8dfe1c893a0b301ae7b (patch)
treec5461820ba181db4258bcf524c42f3fac982e454 /mod/dirprofile.php
parentaa285b83c1c8f674be8f200d4feae6299eafc436 (diff)
parenta1e7c65d51a6472cf7fe95686883f77953d7dfd7 (diff)
downloadvolse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.tar.gz
volse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.tar.bz2
volse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.zip
Merge branch 'master' of https://github.com/friendica/red
to be in sync with main repro
Diffstat (limited to 'mod/dirprofile.php')
-rw-r--r--mod/dirprofile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/dirprofile.php b/mod/dirprofile.php
index 1593b014a..d88144f52 100644
--- a/mod/dirprofile.php
+++ b/mod/dirprofile.php
@@ -74,6 +74,9 @@ function dirprofile_init(&$a) {
$qrlink = zid($rr['url']);
$connect_link = ((local_user()) ? z_root() . '/follow?f=&url=' . urlencode($rr['address']) : '');
+ $online = remote_online_status($rr['address']);
+
+
if(in_array($rr['hash'],$contacts))
$connect_link = '';
@@ -151,6 +154,7 @@ function dirprofile_init(&$a) {
'$photo' => $rr['photo_l'],
'$alttext' => $rr['name'] . ' ' . $rr['address'],
'$name' => $rr['name'],
+ '$online' => (($online) ? t('Online Now') : ''),
'$details' => $pdesc . $details,
'$profile' => $profile,
'$address' => $rr['address'],