Fix thread hiding init.
This commit is contained in:
parent
1b5695ac82
commit
64b5da652f
@ -1049,7 +1049,6 @@ ThreadHiding =
|
||||
return if g.VIEW isnt 'index' or !Conf['Thread Hiding'] and !Conf['Thread Hiding Link']
|
||||
|
||||
Misc.clearThreads "hiddenThreads.#{g.BOARD}"
|
||||
@getHiddenThreads()
|
||||
@syncFromCatalog()
|
||||
Thread::callbacks.push
|
||||
name: 'Thread Hiding'
|
||||
@ -1068,8 +1067,9 @@ ThreadHiding =
|
||||
|
||||
syncFromCatalog: ->
|
||||
# Sync hidden threads from the catalog into the index.
|
||||
ThreadHiding.getHiddenThreads (hiddenThreads) ->
|
||||
{threads} = hiddenThreads
|
||||
hiddenThreadsOnCatalog = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
|
||||
{threads} = ThreadHiding.hiddenThreads
|
||||
|
||||
# Add threads that were hidden in the catalog.
|
||||
for threadID of hiddenThreadsOnCatalog
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user