From 49efc57af642ce15dfd83187f11c20822ca8d58e Mon Sep 17 00:00:00 2001 From: Ellie Frymire Date: Fri, 31 Aug 2018 12:34:05 -0700 Subject: [PATCH] debugging 7 --- read_and_reply.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/read_and_reply.js b/read_and_reply.js index b48097f..8053b9c 100644 --- a/read_and_reply.js +++ b/read_and_reply.js @@ -69,7 +69,7 @@ module.exports.read_and_reply = read_and_reply = (tweetEvent) => { console.log(tweetEvent.tweet_create_events[0]) console.log(quoteStatus) - if (quoteStatus && viz.length) { + if (quoteStatus) { let user1 = tweetEvent.tweet_create_events[0].user.screen_name let user2 = tweetEvent.tweet_create_events[0].quoted_status.user.screen_name let tweet = '@' + user1 + ' ' + '@' + user2 + ' ' + makeViz(parse(tweetEvent.tweet_create_events[0].quoted_status.text)) @@ -88,7 +88,7 @@ module.exports.read_and_reply = read_and_reply = (tweetEvent) => { console.log(body) }) - } else if (viz.length) { + } else { let user = tweetEvent.tweet_create_events[0].user.screen_name let tweet = '@' + user + ' ' + makeViz(parse(tweetEvent.tweet_create_events[0].text)) @@ -105,7 +105,5 @@ module.exports.read_and_reply = read_and_reply = (tweetEvent) => { console.log(body) }) - } else { - null } } \ No newline at end of file