mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Preparation for a new variable that points to the post on the own friendica server
This commit is contained in:
parent
f78bdf663a
commit
9c87e00dd3
1 changed files with 11 additions and 8 deletions
|
@ -1609,15 +1609,18 @@ if(! function_exists('get_plink')) {
|
|||
*/
|
||||
function get_plink($item) {
|
||||
$a = get_app();
|
||||
if (x($item,'plink') && ($item['private'] != 1)) {
|
||||
return array(
|
||||
'href' => $item['plink'],
|
||||
$ret = array(
|
||||
'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
|
||||
'title' => t('link to source'),
|
||||
);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$ret["orig"] = $ret["href"];
|
||||
|
||||
//if (x($item,'plink') && ($item['private'] != 1))
|
||||
if (x($item,'plink'))
|
||||
$ret["href"] = $item['plink'];
|
||||
|
||||
return($ret);
|
||||
}}
|
||||
|
||||
if(! function_exists('unamp')) {
|
||||
|
|
Loading…
Reference in a new issue