diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-28 22:12:27 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-28 22:12:27 -0700 |
commit | 18287a365693d0607be76091679cb45dc2748a6f (patch) | |
tree | 213bc6b735e7c25a1401d565fa60dcae2424ea12 /mod/profile.php | |
parent | dd3f754e235e286207ee638e75c601ca1e809936 (diff) | |
download | volse-hubzilla-18287a365693d0607be76091679cb45dc2748a6f.tar.gz volse-hubzilla-18287a365693d0607be76091679cb45dc2748a6f.tar.bz2 volse-hubzilla-18287a365693d0607be76091679cb45dc2748a6f.zip |
show lockstate on messages, sparkle failure on profile page,
comments on typo checker
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php index a0cdcfcc7..bf9c0f758 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -231,7 +231,7 @@ function profile_content(&$a, $update = 0) { $a->set_pager_total($r[0]['total']); $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, - `contact`.`name`, `contact`.`photo`, `contact`.`url`, + `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`, `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`, `contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` @@ -307,6 +307,14 @@ function profile_content(&$a, $update = 0) { if((($item['verb'] == ACTIVITY_LIKE) || ($item['verb'] == ACTIVITY_DISLIKE)) && ($item['id'] != $item['parent'])) continue; + $lock = (($item['uid'] == get_uid()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) + || strlen($item['deny_cid']) || strlen($item['deny_gid'])) + ? '<div class="wall-item-lock"><img src="images/lock_icon.gif" alt="Private Message" /></div>' + : '<div class="wall-item-lock"></div>'); + + + + if(can_write_wall($a,$a->profile['profile_uid'])) { if($item['id'] == $item['parent']) { $likebuttons = replace_macros($like_tpl,array('$id' => $item['id'])); @@ -370,6 +378,7 @@ function profile_content(&$a, $update = 0) { '$title' => $item['title'], '$body' => bbcode($item['body']), '$ago' => relative_date($item['created']), + '$lock' => $lock, '$location' => (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : ''), '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''), '$drop' => $drop, |