aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-10-19 11:05:20 +0200
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:30:13 +0100
commitfa020db2972e54dc7ce22521c197c536cec68841 (patch)
treed9722314ea9bd238bf9e76aeae98d2e6e2122fa0 /application
parent0d051da4a14b6325b4ab7d93ebcd63d4a8dc141c (diff)
downloadShaarli-fa020db2972e54dc7ce22521c197c536cec68841.tar.gz
Shaarli-fa020db2972e54dc7ce22521c197c536cec68841.tar.zst
Shaarli-fa020db2972e54dc7ce22521c197c536cec68841.zip
Fix hashtags links in Feeds
Make the hashtag link absolute in feeds to work properly in RSS syndication tools.
Diffstat (limited to 'application')
-rw-r--r--application/FeedBuilder.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/FeedBuilder.php b/application/FeedBuilder.php
index c6657fbb..4036a7cc 100644
--- a/application/FeedBuilder.php
+++ b/application/FeedBuilder.php
@@ -153,7 +153,8 @@ class FeedBuilder
153 } else { 153 } else {
154 $permalink = '<a href="'. $link['guid'] .'" title="Permalink">Permalink</a>'; 154 $permalink = '<a href="'. $link['guid'] .'" title="Permalink">Permalink</a>';
155 } 155 }
156 $link['description'] = format_description($link['description']) . PHP_EOL .'<br>&#8212; '. $permalink; 156 $link['description'] = format_description($link['description'], '', $pageaddr);
157 $link['description'] .= PHP_EOL .'<br>&#8212; '. $permalink;
157 158
158 $pubDate = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']); 159 $pubDate = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']);
159 $link['pub_iso_date'] = $this->getIsoDate($pubDate); 160 $link['pub_iso_date'] = $this->getIsoDate($pubDate);