bookmark links are deprecated in zap

This commit is contained in:
zotlabs 2018-09-14 16:49:08 -07:00
parent 291f493457
commit d67d26564d
2 changed files with 4 additions and 4 deletions

View file

@ -591,7 +591,7 @@ function get_atom_elements($feed, $item) {
$res['title'] = '';
}
elseif($res['plink'] && $res['title']) {
$res['body'] = '#^[url=' . $res['plink'] . ']' . $res['title'] . '[/url]' . "\n\n" . $res['body'];
$res['body'] = '[url=' . $res['plink'] . ']' . $res['title'] . '[/url]' . "\n\n" . $res['body'];
$terms = array();
$terms[] = array(
'otype' => TERM_OBJ_POST,
@ -601,7 +601,7 @@ function get_atom_elements($feed, $item) {
);
}
elseif($res['plink']) {
$res['body'] = '#^[url]' . $res['plink'] . '[/url]' . "\n\n" . $res['body'];
$res['body'] = '[url]' . $res['plink'] . '[/url]' . "\n\n" . $res['body'];
$terms = array();
$terms[] = array(
'otype' => TERM_OBJ_POST,

View file

@ -214,9 +214,9 @@ function red_zrl_callback($matches) {
if($matches[1] === '#^')
$matches[1] = '';
if($zrl)
return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[1] . '[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]';
return $matches[1] . '[url=' . $matches[2] . ']' . $matches[2] . '[/url]';
}
/**