Any unread data for Tinyboard sites is currently inaccurate and should not be displayed.
This commit is contained in:
parent
43db7a6773
commit
670302a947
@ -299,6 +299,8 @@ ThreadWatcher =
|
|||||||
all
|
all
|
||||||
|
|
||||||
makeLine: (siteID, boardID, threadID, data) ->
|
makeLine: (siteID, boardID, threadID, data) ->
|
||||||
|
software = Conf['siteProperties'][siteID]?.software
|
||||||
|
|
||||||
x = $.el 'a',
|
x = $.el 'a',
|
||||||
className: 'fa fa-times'
|
className: 'fa fa-times'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -308,11 +310,11 @@ ThreadWatcher =
|
|||||||
excerpt or= "/#{boardID}/ - No.#{threadID}"
|
excerpt or= "/#{boardID}/ - No.#{threadID}"
|
||||||
|
|
||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
href: SW[Conf['siteProperties'][siteID]?.software]?.urls.thread({siteID, boardID, threadID}) or ''
|
href: SW[software]?.urls.thread({siteID, boardID, threadID}) or ''
|
||||||
title: excerpt
|
title: excerpt
|
||||||
className: 'watcher-link'
|
className: 'watcher-link'
|
||||||
|
|
||||||
if ThreadWatcher.unreadEnabled and Conf['Show Unread Count'] and data.unread?
|
if ThreadWatcher.unreadEnabled and Conf['Show Unread Count'] and software is 'yotsuba' and data.unread?
|
||||||
count = $.el 'span',
|
count = $.el 'span',
|
||||||
textContent: "(#{data.unread})"
|
textContent: "(#{data.unread})"
|
||||||
className: 'watcher-unread'
|
className: 'watcher-unread'
|
||||||
@ -329,7 +331,7 @@ ThreadWatcher =
|
|||||||
div.dataset.siteID = siteID
|
div.dataset.siteID = siteID
|
||||||
$.addClass div, 'current' if g.VIEW is 'thread' and fullID is "#{g.BOARD}.#{g.THREADID}"
|
$.addClass div, 'current' if g.VIEW is 'thread' and fullID is "#{g.BOARD}.#{g.THREADID}"
|
||||||
$.addClass div, 'dead-thread' if data.isDead
|
$.addClass div, 'dead-thread' if data.isDead
|
||||||
if ThreadWatcher.unreadEnabled and Conf['Show Unread Count']
|
if ThreadWatcher.unreadEnabled and Conf['Show Unread Count'] and software is 'yotsuba'
|
||||||
$.addClass div, 'replies-read' if data.unread is 0
|
$.addClass div, 'replies-read' if data.unread is 0
|
||||||
$.addClass div, 'replies-unread' if data.unread
|
$.addClass div, 'replies-unread' if data.unread
|
||||||
$.addClass div, 'replies-quoting-you' if data.quotingYou
|
$.addClass div, 'replies-quoting-you' if data.quotingYou
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user