Skip to content

Commit

Permalink
debugging 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellie Frymire authored and Ellie Frymire committed Aug 31, 2018
1 parent 69bad43 commit 49efc57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions read_and_reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))

Expand All @@ -105,7 +105,5 @@ module.exports.read_and_reply = read_and_reply = (tweetEvent) => {
console.log(body)
})

} else {
null
}
}

0 comments on commit 49efc57

Please sign in to comment.