mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Get the right comments URL when having multiple namespaces
This commit is contained in:
parent
7640a8cbab
commit
f76093690c
2 changed files with 34 additions and 16 deletions
|
@ -583,13 +583,16 @@ func TestParseEntryWithRelativeURL(t *testing.T) {
|
|||
|
||||
func TestParseEntryWithCommentsURL(t *testing.T) {
|
||||
data := `<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0">
|
||||
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
||||
<channel>
|
||||
<link>https://example.org/</link>
|
||||
<item>
|
||||
<title>Item 1</title>
|
||||
<link>https://example.org/item1</link>
|
||||
<comments>https://example.org/comments</comments>
|
||||
<comments>
|
||||
https://example.org/comments
|
||||
</comments>
|
||||
<slash:comments>42</slash:comments>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue