aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FeedBuilder.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-10-19 11:05:20 +0200
committerArthurHoaro <arthur@hoa.ro>2016-10-20 11:42:01 +0200
commitfbc28ff1c892460e90e87a1be6dd3e28a4cd58b8 (patch)
treea5df9c5e3799b43a42308c28fdd724e4d5287061 /application/FeedBuilder.php
parentceeb8fbeb89f69e41791ae192d073d6afea00f4b (diff)
downloadShaarli-fbc28ff1c892460e90e87a1be6dd3e28a4cd58b8.tar.gz
Shaarli-fbc28ff1c892460e90e87a1be6dd3e28a4cd58b8.tar.zst
Shaarli-fbc28ff1c892460e90e87a1be6dd3e28a4cd58b8.zip
Fix hashtags links in Feeds
Make the hashtag link absolute in feeds to work properly in RSS syndication tools.
Diffstat (limited to 'application/FeedBuilder.php')
-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);