QuoteYou.db needs to exist in catalog and archive modes so thread watcher works.
This commit is contained in:
parent
bdd11f6b66
commit
a9afe7ed25
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user