That was just a little too much going on in one line
This commit is contained in:
parent
a7a7df6b7b
commit
de5d903e46
@ -9790,9 +9790,14 @@
|
|||||||
record = _ref[boardID];
|
record = _ref[boardID];
|
||||||
for (type in record) {
|
for (type in record) {
|
||||||
id = record[type];
|
id = record[type];
|
||||||
if ((archive = archives[id]) && __indexOf.call((type === 'file' ? archive['file'] : archive['boards']), boardID) >= 0) {
|
if (!((archive = archives[id]))) {
|
||||||
o[type][boardID] = archive.data;
|
continue;
|
||||||
}
|
}
|
||||||
|
boards = type === 'file' ? archive.file : archive.boards;
|
||||||
|
if (__indexOf.call(boards, boardID) < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
o[type][boardID] = archive.data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (name in archives) {
|
for (name in archives) {
|
||||||
|
|||||||
@ -9779,9 +9779,14 @@
|
|||||||
record = _ref[boardID];
|
record = _ref[boardID];
|
||||||
for (type in record) {
|
for (type in record) {
|
||||||
id = record[type];
|
id = record[type];
|
||||||
if ((archive = archives[id]) && __indexOf.call((type === 'file' ? archive['file'] : archive['boards']), boardID) >= 0) {
|
if (!((archive = archives[id]))) {
|
||||||
o[type][boardID] = archive.data;
|
continue;
|
||||||
}
|
}
|
||||||
|
boards = type === 'file' ? archive.file : archive.boards;
|
||||||
|
if (__indexOf.call(boards, boardID) < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
o[type][boardID] = archive.data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (name in archives) {
|
for (name in archives) {
|
||||||
|
|||||||
@ -9,7 +9,9 @@ Redirect =
|
|||||||
{archives} = Redirect
|
{archives} = Redirect
|
||||||
|
|
||||||
for boardID, record of Conf['selectedArchives']
|
for boardID, record of Conf['selectedArchives']
|
||||||
for type, id of record when (archive = archives[id]) and boardID in (if type is 'file' then archive['file'] else archive['boards'])
|
for type, id of record when (archive = archives[id])
|
||||||
|
boards = if type is 'file' then archive.file else archive.boards
|
||||||
|
continue unless boardID in boards
|
||||||
o[type][boardID] = archive.data
|
o[type][boardID] = archive.data
|
||||||
|
|
||||||
for name, {data, boards, files} of archives
|
for name, {data, boards, files} of archives
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user