diff --git a/lib/XRay/PostType.php b/lib/XRay/PostType.php index ed6610a..3c9dc72 100644 --- a/lib/XRay/PostType.php +++ b/lib/XRay/PostType.php @@ -59,7 +59,7 @@ class PostType { // If this processed "name" property value is NOT a prefix of the // processed "content" property, then it is an article post. - if(strpos($content, $name) === false) { + if(strpos($content, $name) !== 0) { return 'article'; } diff --git a/tests/data/feed.example.com/rss b/tests/data/feed.example.com/rss index 5c687a5..ef3be93 100644 --- a/tests/data/feed.example.com/rss +++ b/tests/data/feed.example.com/rss @@ -90,7 +90,7 @@ Connection: keep-alive 0 - Bridgy Fed + https://snarfed.org/2017-10-22_bridgy-fed https://snarfed.org/2017-10-22_bridgy-fed#respond Mon, 23 Oct 2017 04:01:46 +0000 @@ -194,4 +194,4 @@ Connection: keep-alive 84 - \ No newline at end of file +