diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-30 16:16:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-30 16:16:02 +0300 |
commit | a8e46fd67298008b27fdb1fafea5c79967c0868c (patch) | |
tree | 9afd0d71abf40722a291e5a68f138c69b9b09407 | |
parent | 2a7c5ff7b9f887566a0e0d33ae6474822e23f571 (diff) |
GmDocument: Visit times are for absolute URLs
-rw-r--r-- | src/gmdocument.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 5e14c55b..0b792d56 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -208,10 +208,12 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li | |||
208 | } | 208 | } |
209 | } | 209 | } |
210 | /* Check if visited. */ { | 210 | /* Check if visited. */ { |
211 | link->when = urlVisitTime_History(history_App(), absoluteUrl_String(&d->url, | 211 | const iString *absUrl = absoluteUrl_String(&d->url, &link->url); |
212 | &link->url)); | 212 | if (cmpString_String(absUrl, &d->url)) { |
213 | if (isValid_Time(&link->when)) { | 213 | link->when = urlVisitTime_History(history_App(), absUrl); |
214 | link->flags |= visited_GmLinkFlag; | 214 | if (isValid_Time(&link->when)) { |
215 | link->flags |= visited_GmLinkFlag; | ||
216 | } | ||
215 | } | 217 | } |
216 | } | 218 | } |
217 | pushBack_PtrArray(&d->links, link); | 219 | pushBack_PtrArray(&d->links, link); |