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