From a44164c58dc9d02ce97dc84939cbce2980aebfc0 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Mon, 20 Jan 2014 10:02:19 +0100 Subject: [PATCH] Fix crash --- src/Archive/Redirect.coffee | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Archive/Redirect.coffee b/src/Archive/Redirect.coffee index 400ae7ee4..99c1bf8c7 100644 --- a/src/Archive/Redirect.coffee +++ b/src/Archive/Redirect.coffee @@ -5,7 +5,7 @@ Redirect = @update() selectArchives: -> - data = + Redirect.data = thread: {} post: {} file: {} @@ -18,17 +18,17 @@ Redirect = archive.files else archive.boards - data[type][boardID] = archive if boardID in arr + Redirect.data[type][boardID] = archive if boardID in arr break for archive in Conf['archives'] for boardID in archive.boards - unless boardID of data.thread - data.thread[boardID] = archive - unless boardID of data.post or archive.software isnt 'foolfuuka' - data.post[boardID] = archive - unless boardID of data.file or boardID not in archive.files - data.file[boardID] = archive - Redirect.data = data + unless boardID of Redirect.data.thread + Redirect.data.thread[boardID] = archive + unless boardID of Redirect.data.post or archive.software isnt 'foolfuuka' + Redirect.data.post[boardID] = archive + unless boardID of Redirect.data.file or boardID not in archive.files + Redirect.data.file[boardID] = archive + return update: (cb) -> $.get 'lastarchivecheck', 0, ({lastarchivecheck}) -> now = Date.now()