X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FFeed.php;h=705a094c38149b433b454fc2b5626181ebb9b598;hb=51ee24f65220f4d5e3b0717767fa399e1a5a58e5;hp=0c9501387c145b0322773025a553a4c08e17853e;hpb=0733ae6aae2bee02335613125bd0ac290b3a4859;p=friendica.git diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 0c9501387c..705a094c38 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -422,7 +422,7 @@ class Feed { $data = ParseUrl::getSiteinfoCached($item['plink'], true); if (!empty($data['text']) && !empty($data['title']) && (mb_strlen($item['body']) < mb_strlen($data['text']))) { // When the fetched page info text is longer than the body, we do try to enhance the body - if ((strpos($data['title'], $item['body']) === false) && (strpos($data['text'], $item['body']) === false)) { + if (!empty($item['body']) && (strpos($data['title'], $item['body']) === false) && (strpos($data['text'], $item['body']) === false)) { // The body is not part of the fetched page info title or page info text. So we add the text to the body $item['body'] .= "\n\n" . $data['text']; } else {