From a9afe7ed25b6d9615e09847ba6318cc695464521 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 16 Feb 2016 20:32:59 -0800 Subject: [PATCH] QuoteYou.db needs to exist in catalog and archive modes so thread watcher works. --- src/Quotelinks/QuoteYou.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Quotelinks/QuoteYou.coffee b/src/Quotelinks/QuoteYou.coffee index 3838b0def..9370b22aa 100644 --- a/src/Quotelinks/QuoteYou.coffee +++ b/src/Quotelinks/QuoteYou.coffee @@ -1,6 +1,6 @@ QuoteYou = init: -> - return unless g.VIEW in ['index', 'thread'] and Conf['Remember Your Posts'] + return unless Conf['Remember Your Posts'] @db = new DataBoard 'yourPosts' $.sync 'Remember Your Posts', (enabled) -> Conf['Remember Your Posts'] = enabled @@ -10,6 +10,8 @@ QuoteYou = {boardID, threadID, postID} = e.detail QuoteYou.db.set {boardID, threadID, postID, val: true} + return unless g.VIEW in ['index', 'thread'] + if Conf['Highlight Own Posts'] $.addClass doc, 'highlight-own'