simplify permalink selection logic

This commit is contained in:
friendica
2014-01-09 16:23:58 -08:00
parent db8ebc9f37
commit a78d9b973d
4 changed files with 7 additions and 5 deletions

View File

@@ -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';