From 8e228c38e3ac4ddc7047b08f827baf311f316a24 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 20 Sep 2014 19:02:03 -0700 Subject: [PATCH] workaround removed too soon --- src/Monitoring/ThreadUpdater.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 5130262c4..815bc0c67 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -132,7 +132,8 @@ ThreadUpdater = switch req.status when 200 ThreadUpdater.parse req.response.posts - if !!req.response.posts[0].archived + # XXX Some threads such as /g/'s sticky https://a.4cdn.org/g/thread/39894014.json still use a string as the archived property. + if !!+req.response.posts[0].archived ThreadUpdater.thread.isArchived = true ThreadUpdater.set 'status', 'Archived', 'warning' ThreadUpdater.kill()