From 795d74171358abe23cc4be01dac0e48d04ee46b4 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 9 Apr 2014 21:11:49 -0700 Subject: issue #400 - lock not showing up for previews of private mentions (or 'new/search' item view) also reformat the new/search template to pick up recent changes to conv_item.tpl --- include/conversation.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index 8803e74e7..d56e468ad 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -635,7 +635,11 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $ $star = false; $isstarred = "unstarred icon-star-empty"; - $lock = false; + $lock = (($item['item_private'] || strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])) + ? t('Private Message') + : false + ); + $likebuttons = false; $shareable = false; -- cgit v1.2.3