aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-16 17:16:50 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-16 17:16:50 -0700
commit5e4df4b3f7782f8a82664d24b86d46a14b3d178b (patch)
tree3728d103be213e4b2965f066441af731b2aa5a72 /mod/profile.php
parent059e090b53643cb07a2634b700ada5cf3b6894e8 (diff)
downloadvolse-hubzilla-5e4df4b3f7782f8a82664d24b86d46a14b3d178b.tar.gz
volse-hubzilla-5e4df4b3f7782f8a82664d24b86d46a14b3d178b.tar.bz2
volse-hubzilla-5e4df4b3f7782f8a82664d24b86d46a14b3d178b.zip
added network page
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 6bd265562..76ebe7d84 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -79,12 +79,21 @@ function item_display(&$a, $item,$template,$comment) {
$photo = (($item['self']) ? $a->profile['photo'] : $item['photo']);
$thumb = (($item['self']) ? $a->profile['thumb'] : $item['thumb']);
+
+ $profile_name = ((strlen($item['remote-name'])) ? $item['remote-name'] : $item['name']);
+ $profile_link = ((strlen($item['remote-link'])) ? $item['remote-link'] : $profile_url);
+ $profile_avatar = ((strlen($item['remote-avatar'])) ? $item['remote-avatar'] : $thumb);
+
+// if(! $item['owner-link']) {
+// $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1".
+
+
$o .= replace_macros($template,array(
'$id' => $item['item_id'],
- '$profile_url' => ((strlen($item['remote-link'])) ? $item['remote-link'] : $profile_url),
- '$name' => ((strlen($item['remote-name'])) ? $item['remote-name'] : $item['name']),
- '$thumb' => ((strlen($item['remote-avatar'])) ? $item['remote-avatar'] : $thumb),
+ '$profile_url' => $profile_link,
+ '$name' => $profile_name,
+ '$thumb' => $profile_avatar,
'$body' => bbcode($item['body']),
'$ago' => relative_date($item['created']),
'$indent' => (($item['parent'] != $item['item_id']) ? 'comment-' : ''),