Merge pull request #58 from Stawberri/conditional_reply_prefix
Conditional reply_prefix for replies
This commit is contained in:
commit
bb5b9e8025
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue