QuoteYou.db needs to exist in catalog and archive modes so thread watcher works.

This commit is contained in:
ccd0 2016-02-16 20:32:59 -08:00
parent bdd11f6b66
commit a9afe7ed25

View File

@ -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'