X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffeed.php;h=12cf06ca5093d6d674a3569bd76e05f1349c0de9;hb=93e447cbf0c113dc3c41292c79a32ced296366bc;hp=91bbb286edf4fa54e79b919027a0818095374433;hpb=a36c8a01730561fb63568aeb4460049d397f075a;p=friendica.git diff --git a/include/feed.php b/include/feed.php index 91bbb286ed..12cf06ca50 100644 --- a/include/feed.php +++ b/include/feed.php @@ -346,15 +346,13 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) { } $item["body"] = html2bbcode($body); - if ($item["body"] == "") { - if ($item["title"] != '') { - $item["body"] = $item["title"]; - $item["title"] = ''; - } + if (($item["body"] == '') && ($item["title"] != '')) { + $item["body"] = $item["title"]; + $item["title"] = ''; } if (!strstr($item["body"], '[url') && ($item['plink'] != '')) { - $item["body"] .= "\n[hr]\n[url]".$item['plink']."[/url]"; + $item["body"] .= "[hr][url]".$item['plink']."[/url]"; } }