]> git.mxchange.org Git - friendica.git/commitdiff
Add the feed link to the body when not present in the feed
authorMichael <heluecht@pirati.ca>
Thu, 11 Jan 2018 22:57:31 +0000 (22:57 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 11 Jan 2018 22:57:31 +0000 (22:57 +0000)
src/Protocol/Feed.php

index af57ced7d4623a4e274bd5a1be700ea21d0815a4..2dafaaf6e71b0e01ac63b26b8b33d958df22c87c 100644 (file)
@@ -417,7 +417,8 @@ class Feed {
                                        }
                                        $item["body"] .= "\n".$item['tag'];
                                }
-                               if (!strstr($item["body"], '[url') && ($item['plink'] != '')) {
+x                              // Add the link to the original feed entry if not present in feed
+                               if (!strstr($item["body"], $item['plink']) && ($item['plink'] != '')) {
                                        $item["body"] .= "[hr][url]".$item['plink']."[/url]";
                                }
                        }