Method: Twitter::REST::Tweets#update
- Defined in:
- lib/twitter/rest/tweets.rb
#update(status, options = {}) ⇒ Twitter::Tweet
Note:
A status update with text identical to the authenticating user's current status will be ignored to prevent duplicates.
Updates the authenticating user's status
127 128 129 130 131 |
# File 'lib/twitter/rest/tweets.rb', line 127 def update(status, = {}) update!(status, ) rescue Twitter::Error::DuplicateStatus user_timeline(count: 1).first end |