]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/feed/FeedBuilder.php
Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieve
[github/shaarli/Shaarli.git] / application / feed / FeedBuilder.php
index e23b34525b02f6e0920777e51e8cc42ee5d0dca4..7c859474de414773052c0c5e79dd1583dfcd046f 100644 (file)
@@ -147,8 +147,8 @@ class FeedBuilder
     protected function buildItem($link, $pageaddr)
     {
         $link['guid'] = $pageaddr . '?' . $link['shorturl'];
-        // Check for both signs of a note: starting with ? and 7 chars long.
-        if ($link['url'][0] === '?' && strlen($link['url']) === 7) {
+        // Prepend the root URL for notes
+        if (is_note($link['url'])) {
             $link['url'] = $pageaddr . $link['url'];
         }
         if ($this->usePermalinks === true) {