Use QR.db to test whether Mark Quotes of You is on.
Fixes backlinks crash on settings change and makes things more consistent.
This commit is contained in:
parent
808b8661f1
commit
b3ce37e065
@ -184,10 +184,10 @@ Keybinds =
|
||||
return unless thread
|
||||
ThreadHiding.toggle thread if ThreadHiding.db
|
||||
when Conf['Previous Post Quoting You']
|
||||
return unless threadRoot
|
||||
return unless threadRoot and QR.db
|
||||
QuoteYou.cb.seek 'preceding'
|
||||
when Conf['Next Post Quoting You']
|
||||
return unless threadRoot
|
||||
return unless threadRoot and QR.db
|
||||
QuoteYou.cb.seek 'following'
|
||||
<% if (tests_enabled) { %>
|
||||
when 't'
|
||||
|
||||
@ -175,7 +175,7 @@ Unread =
|
||||
Unread.posts.delete ID
|
||||
Unread.postsQuotingYou.delete ID
|
||||
|
||||
if Conf['Mark Quotes of You'] and QR.db?.get {
|
||||
if QR.db?.get {
|
||||
boardID: data.board.ID
|
||||
threadID: data.thread.ID
|
||||
postID: ID
|
||||
|
||||
@ -22,7 +22,7 @@ QuoteBacklink =
|
||||
cb: @secondNode
|
||||
firstNode: ->
|
||||
return if @isClone or !@quotes.length or @isRebuilt
|
||||
markYours = Conf['Quick Reply'] and Conf['Mark Quotes of You'] and QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
|
||||
markYours = QR.db?.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
|
||||
a = $.el 'a',
|
||||
href: Build.postURL @board.ID, @thread.ID, @ID
|
||||
className: if @isHidden then 'filtered backlink' else 'backlink'
|
||||
|
||||
@ -34,7 +34,6 @@ QuoteYou =
|
||||
|
||||
cb:
|
||||
seek: (type) ->
|
||||
return unless Conf['Mark Quotes of You'] and Conf['Quick Reply']
|
||||
$.rmClass highlight, 'highlight' if highlight = $ '.highlight'
|
||||
|
||||
unless QuoteYou.lastRead
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user