From a78d9b973d6391e3a15f8a3ff2fe586a4bffe08c Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Jan 2014 16:23:58 -0800 Subject: simplify permalink selection logic --- include/text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index b47f0518a..f5c440e4a 100755 --- a/include/text.php +++ b/include/text.php @@ -1389,9 +1389,9 @@ function feed_salmonlinks($nick) { } -function get_plink($item,$mode) { +function get_plink($item,$conversation_mode = true) { $a = get_app(); - if(($mode == 'display') || ($mode == 'channel') || ($mode == 'network')) + if($conversation_mode) $key = 'plink'; else $key = 'llink'; -- cgit v1.2.3