link to source - if it's on the display page link to original source (probably on a different site). All other conversations link to 'llink' which is a local copy and may provide a richer possibility of interactions, especially if you're logged in locally and it's your own copy of the post.
This commit is contained in:
@@ -1337,11 +1337,16 @@ function feed_salmonlinks($nick) {
|
||||
}
|
||||
|
||||
|
||||
function get_plink($item) {
|
||||
$a = get_app();
|
||||
if (x($item,'plink') && ($item['item_private'] != 1)) {
|
||||
function get_plink($item,$mode) {
|
||||
$a = get_app();
|
||||
if($mode == 'display')
|
||||
$key = 'plink';
|
||||
else
|
||||
$key = 'llink';
|
||||
|
||||
if (x($item,$key) && ($item['item_private'] != 1)) {
|
||||
return array(
|
||||
'href' => zid($item['plink']),
|
||||
'href' => zid($item[$key]),
|
||||
'title' => t('link to source'),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user