aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-04 12:56:57 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-04 12:56:57 -0200
commitebe40543241c902d6e9af12c783ffbcd9b000833 (patch)
tree22435c5654af34159cc6c88c98b15d65e361c85e /sx-question.el
parent3d35ecfbf78bb862eb70c3166f6eb35fd4cb9cce (diff)
parent5332946380610d5166c2d7b517a817e021130edd (diff)
Merge pull request #184 from vermiculus/fix-mark-read-logic
Fix mark read logic
Diffstat (limited to 'sx-question.el')
-rw-r--r--sx-question.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-question.el b/sx-question.el
index 85d3cc5..44dad07 100644
--- a/sx-question.el
+++ b/sx-question.el
@@ -118,7 +118,8 @@ See `sx-question--user-read-list'."
;; Question already present.
((setq cell (assoc .question_id site-cell))
;; Current version is newer than cached version.
- (when (> .last_activity_date (cdr cell))
+ (when (or (not (numberp (cdr cell)))
+ (> .last_activity_date (cdr cell)))
(setcdr cell .last_activity_date)))
;; Question wasn't present.
(t