From 18287a365693d0607be76091679cb45dc2748a6f Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 28 Sep 2010 22:12:27 -0700 Subject: show lockstate on messages, sparkle failure on profile page, comments on typo checker --- mod/network.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod/network.php') diff --git a/mod/network.php b/mod/network.php index 1634a0f06..b0daecac4 100644 --- a/mod/network.php +++ b/mod/network.php @@ -173,6 +173,13 @@ function network_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'])) + ? '
Private Message
' + : '
'); + + // Top-level wall post not written by the wall owner (wall-to-wall) // First figure out who owns it. @@ -279,6 +286,7 @@ function network_content(&$a, $update = 0) { '$title' => $item['title'], '$body' => bbcode($item['body']), '$ago' => relative_date($item['created']), + '$lock' => $lock, '$location' => (($item['location']) ? '' . $item['location'] . '' : ''), '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''), '$owner_url' => $owner_url, -- cgit v1.2.3