diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-03 18:20:41 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-03 18:20:41 +0300 |
commit | 9d2957506caa20538bf5579069b2eeb36c0ac6d4 (patch) | |
tree | 3973bc1820428b9f9175a03eaf35a644ccf829c7 | |
parent | 84469383522942a4e0eb31b3920a24cbef8c8c47 (diff) |
Feeds: Canonical entry URLs
-rw-r--r-- | src/feeds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feeds.c b/src/feeds.c index 3bb6ad89..91ef8c2c 100644 --- a/src/feeds.c +++ b/src/feeds.c | |||
@@ -241,9 +241,10 @@ static void parseResult_FeedJob_(iFeedJob *d) { | |||
241 | entry->bookmarkId = d->bookmarkId; | 241 | entry->bookmarkId = d->bookmarkId; |
242 | iString *title = newRange_String(line); | 242 | iString *title = newRange_String(line); |
243 | set_String(&entry->title, title); | 243 | set_String(&entry->title, title); |
244 | set_String(&entry->url, canonicalUrl_String(&d->url)); | 244 | set_String(&entry->url, &d->url); |
245 | appendChar_String(&entry->url, '#'); | 245 | appendChar_String(&entry->url, '#'); |
246 | append_String(&entry->url, collect_String(urlEncode_String(title))); | 246 | append_String(&entry->url, collect_String(urlEncode_String(title))); |
247 | set_String(&entry->url, canonicalUrl_String(&entry->url)); | ||
247 | delete_String(title); | 248 | delete_String(title); |
248 | pushBack_PtrArray(&d->results, entry); | 249 | pushBack_PtrArray(&d->results, entry); |
249 | } | 250 | } |