remove remnants of CachedTitles

This commit is contained in:
ccd0 2014-08-24 10:29:20 -07:00
parent 6abbbf00e2
commit e252903b7d
2 changed files with 5 additions and 10 deletions

View File

@ -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()

View File

@ -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) ->