From: ArthurHoaro Date: Sun, 18 Dec 2016 13:32:41 +0000 (+0100) Subject: More merge mess up fixes X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=de92edd6dd6c09625d0acda8009ebbed86b98f47;p=github%2Fshaarli%2FShaarli.git More merge mess up fixes --- diff --git a/application/FeedBuilder.php b/application/FeedBuilder.php index b0aa5764..1c9812a4 100644 --- a/application/FeedBuilder.php +++ b/application/FeedBuilder.php @@ -125,7 +125,7 @@ class FeedBuilder $data['show_dates'] = !$this->hideDates || $this->isLoggedIn; // Remove leading slash from REQUEST_URI. $data['self_link'] = escape(server_url($this->serverInfo)) - . escape($this->serverInfo['REQUEST_URI']); + . escape($this->serverInfo['REQUEST_URI']); $data['index_url'] = $pageaddr; $data['usepermalinks'] = $this->usePermalinks === true; $data['links'] = $linkDisplayed; @@ -143,7 +143,7 @@ class FeedBuilder */ protected function buildItem($link, $pageaddr) { - $link['guid'] = $pageaddr .'?'. smallHash($link['linkdate']); + $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) { $link['url'] = $pageaddr . $link['url']; diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php index 4a67b2dc..17ef2280 100644 --- a/tests/plugins/PluginMarkdownTest.php +++ b/tests/plugins/PluginMarkdownTest.php @@ -185,17 +185,4 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase $data = process_markdown($md); $this->assertEquals($html, $data); } - - /** - * Test hashtag links processed with markdown. - */ - function testMarkdownHashtagLinks() - { - $md = file_get_contents('tests/plugins/resources/markdown.md'); - $md = format_description($md); - $html = file_get_contents('tests/plugins/resources/markdown.html'); - - $data = process_markdown($md); - $this->assertEquals($html, $data); - } }