mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 22:15:15 +00:00
bookmark links are deprecated in zap
This commit is contained in:
parent
291f493457
commit
d67d26564d
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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]';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue