Fix wrong variable reference

This commit is contained in:
Calvin Montgomery 2014-06-15 12:51:39 -07:00
parent 8c50655ff2
commit 0102b92730
1 changed files with 2 additions and 2 deletions

View File

@ -961,9 +961,9 @@ function isExpired(media) {
if (media.meta.expiration && media.meta.expiration < Date.now()) {
return true;
} else if (media.type === "gd") {
return !media.object;
return !media.meta.object;
} else if (media.type === "vi") {
return !media.direct;
return !media.meta.direct;
}
}