Skip to content

Commit

Permalink
Merge pull request #79 from two-n/master
Browse files Browse the repository at this point in the history
debugging 7
  • Loading branch information
efrymire authored Aug 31, 2018
2 parents 878a111 + 49efc57 commit e1b4813
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 e1b4813

Please sign in to comment.