]> git.lizzy.rs Git - go-anidb.git/blobdiff - mylistcache.go
anidb: Avoid crash during MyListAdd / MyListEdit
[go-anidb.git] / mylistcache.go
index ed6a8ecff368dd7abfa642b75d5d5c7332d980e9..0aa837ae8aba96b6f8720834267d477452946fae 100644 (file)
@@ -237,7 +237,7 @@ func (adb *AniDB) parseMylistReply(reply udpapi.APIReply) *MyListEntry {
                                if mla.Cached.IsZero() {
                                        // as attractive as such an ancient mtime would be,
                                        // few filesystems can represent it; just make it old enough
-                                       mla.Cached = now.Add(-2 * MyListCacheDuration)
+                                       mla.Cached = time.Unix(0, 0),
                                }
 
                                Cache.Set(mla, key...)