aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-24 01:58:24 -0700
committerfriendica <info@friendica.com>2014-09-24 01:58:24 -0700
commitbe54f0d9e649f634f2b027e75aef07d197901512 (patch)
tree5804a220bebc92c7b6919b6f9157017068e17fa7
parent87b8e2725c454b9ddeb15836301736d366ff8482 (diff)
downloadvolse-hubzilla-be54f0d9e649f634f2b027e75aef07d197901512.tar.gz
volse-hubzilla-be54f0d9e649f634f2b027e75aef07d197901512.tar.bz2
volse-hubzilla-be54f0d9e649f634f2b027e75aef07d197901512.zip
more testing
-rwxr-xr-xinclude/items.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index c5fc14a09..e4339e5f6 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1583,10 +1583,24 @@ function get_atom_elements($feed,$item,&$author) {
if(get_config('system','feedlinks')) {
if($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,
+ 'type' => TERM_BOOKMARK,
+ 'url' => $res['plink'],
+ 'term' => $res['title'],
+ );
}
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,
+ 'type' => TERM_BOOKMARK,
+ 'url' => $res['plink'],
+ 'term' => $res['plink'],
+ );
}
}
@@ -1678,7 +1692,8 @@ function get_atom_elements($feed,$item,&$author) {
$cats = $item->get_categories();
if($cats) {
- $terms = array();
+ if(is_null($terms))
+ $terms = array();
foreach($cats as $cat) {
$term = $cat->get_term();
if(! $term)