     if err && err.name != "NoSuchThingError"
       next err
     else
-      if cot && Date.parse(cot.expiresAt) < Date.now() + ONE_HOUR
+      if cot && Date.parse(cot.expiresAt) > (Date.now() + ONE_HOUR)
         req.clientOnlyToken = cot.token
         next()
       else

            totalUpvotes: post.votes_count
            totalComments: post.comments_count
          inputses.push inputs
        start = Date.now()
        req.app.fuzzyIO.evaluate req.agent, inputses, (err, outputses) ->
          if err
            console.error err
            callback err
          else
            console.log "#{Date.now() - start} to score #{posts.length} posts"
            for post, i in posts
              post.score = outputses[i].score
            callback null, posts

              "Accept": JSON_TYPE
              "Authorization": "Bearer #{token}"
            url = "https://api.producthunt.com/v1/posts/#{id}"
            dfpstart = Date.now()
            cacheGet url, token, headers, (err, body) ->
              if err
                callback err
              else
                console.log "#{Date.now() - dfpstart} to get post with ID #{id}"
                results = JSON.parse(body)
                callback null, results.post
          getPostsForDay = (day, callback) ->
            async.waterfall [
              (callback) ->
                gpidsstart = Date.now()
                getPostIDs req.clientOnlyToken, day, (err, ids) ->
                  if err
                    callback err
                  else
                    console.log "#{Date.now() - gpidsstart} to get post ids for #{day}"
                    callback null, ids
              (ids, callback) ->
                mdfpstart = Date.now()
                async.map ids, downloadFullPost, (err, posts) ->
                  if err
                    callback err
                  else
                    console.log "#{Date.now() - mdfpstart} to download posts for #{day}"
                    posts = _.filter posts, (post) ->
                      !(post?.current_user?.voted_for_post || post?.current_user?.commented_on_post)
                    callback null, posts
