Do not try to retrieve thumbnails for internal link

Also adds a helper function to determine if a link is a note and apply it across multiple files.
This commit is contained in:
ArthurHoaro 2019-02-09 14:13:08 +01:00
parent 905f8675a7
commit a8e7da0114
6 changed files with 42 additions and 7 deletions
application/feed

View 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) {