mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
Merge pull request #62 from Stawberri/reply_log_entries
Fixed log entries for replies
This commit is contained in:
@@ -383,8 +383,8 @@ module Ebooks
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
log "Replying to @#{ev.user.screen_name} with: #{meta.reply_prefix + text}"
|
|
||||||
text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i
|
text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i
|
||||||
|
log "Replying to @#{ev.user.screen_name} with: #{text}"
|
||||||
tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id))
|
tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id))
|
||||||
conversation(tweet).add(tweet)
|
conversation(tweet).add(tweet)
|
||||||
tweet
|
tweet
|
||||||
|
|||||||
Reference in New Issue
Block a user