remove remnants of CachedTitles
This commit is contained in:
parent
6abbbf00e2
commit
e252903b7d
@ -34,7 +34,6 @@ Main =
|
|||||||
for db in DataBoard.keys
|
for db in DataBoard.keys
|
||||||
Conf[db] = boards: {}
|
Conf[db] = boards: {}
|
||||||
Conf['selectedArchives'] = {}
|
Conf['selectedArchives'] = {}
|
||||||
Conf['CachedTitles'] = []
|
|
||||||
$.get Conf, (items) ->
|
$.get Conf, (items) ->
|
||||||
$.extend Conf, items
|
$.extend Conf, items
|
||||||
Main.initFeatures()
|
Main.initFeatures()
|
||||||
|
|||||||
@ -168,15 +168,11 @@ Linkify =
|
|||||||
title: (data) ->
|
title: (data) ->
|
||||||
[key, uid, options, link, post] = data
|
[key, uid, options, link, post] = data
|
||||||
return unless service = Linkify.types[key].title
|
return unless service = Linkify.types[key].title
|
||||||
titles = Conf['CachedTitles']
|
try
|
||||||
if title = titles[uid]
|
$.cache service.api(uid), (-> Linkify.cb.title @, data), responseType: 'json'
|
||||||
link.textContent = title[0]
|
catch err
|
||||||
else
|
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
||||||
try
|
return
|
||||||
$.cache service.api(uid), (-> Linkify.cb.title @, data), responseType: 'json'
|
|
||||||
catch err
|
|
||||||
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
|
||||||
return
|
|
||||||
|
|
||||||
cb:
|
cb:
|
||||||
toggle: (e) ->
|
toggle: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user