From 87b8e2725c454b9ddeb15836301736d366ff8482 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 24 Sep 2014 01:45:57 -0700 Subject: just an experiment - don't do anything with this until I'm finished with it. --- include/items.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index d972a1ce9..c5fc14a09 100755 --- a/include/items.php +++ b/include/items.php @@ -1581,6 +1581,15 @@ 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']; + } + elseif($res['plink']) { + $res['body'] = '[url]' . $res['plink'] . '[/url]' . "\n\n" . $res['body']; + } + } + $private = $item->get_item_tags(NAMESPACE_DFRN,'private'); if($private && intval($private[0]['data']) > 0) $res['item_private'] = ((intval($private[0]['data'])) ? 1 : 0); -- cgit v1.2.3