aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-24 02:18:13 -0700
committerfriendica <info@friendica.com>2014-09-24 02:18:13 -0700
commitc76b8febaac5e1ec925499dd63ff763dc512fab8 (patch)
tree50afe34818719b89efab76a69cb0fce04db46281 /include/items.php
parent95470a9f9b1f2ceff096b1704eca6a9deb21418f (diff)
downloadvolse-hubzilla-c76b8febaac5e1ec925499dd63ff763dc512fab8.tar.gz
volse-hubzilla-c76b8febaac5e1ec925499dd63ff763dc512fab8.tar.bz2
volse-hubzilla-c76b8febaac5e1ec925499dd63ff763dc512fab8.zip
make it the default
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php41
1 files changed, 20 insertions, 21 deletions
diff --git a/include/items.php b/include/items.php
index e46d9351e..8c7a0a777 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1581,28 +1581,27 @@ function get_atom_elements($feed,$item,&$author) {
$res['body'] = escape_tags($res['body']);
}
- if(get_config('system','feedlinks')) {
- if($res['plink'] && $res['title']) {
- $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'];
- $terms = array();
- $terms[] = array(
- 'otype' => TERM_OBJ_POST,
- 'type' => TERM_BOOKMARK,
- 'url' => $res['plink'],
- 'term' => $res['plink'],
- );
- }
+ if($res['plink'] && $res['title']) {
+ $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'];
+ $terms = array();
+ $terms[] = array(
+ 'otype' => TERM_OBJ_POST,
+ 'type' => TERM_BOOKMARK,
+ 'url' => $res['plink'],
+ 'term' => $res['plink'],
+ );
+ }
+
$private = $item->get_item_tags(NAMESPACE_DFRN,'private');
if($private && intval($private[0]['data']) > 0)