Permalink
Browse files

Merge branch 'master' of github.com:seancribbs/radiant-twitter-extension

  • Loading branch information...
saturnflyer committed Mar 17, 2010
2 parents 69a2503 + 9eba914 commit ead32c85e47472f24a29e1415429757e2b73c65a
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/twitter_notification.rb
@@ -17,13 +17,14 @@ def notify_twitter
client = Twitter::Base.new(httpauth)
status = client.update(message, :source => "radianttwitternotifier")
# Don't trigger save callbacks
- self.class.update_all({:twitter_id => client.id}, :id => self.id)
+ self.class.update_all({:twitter_id => status.id}, :id => self.id)
rescue Exception => e
# Twitter failed... just log for now
logger.error "Twitter Notification failure: #{e.inspect}"
end
end
end
+ true
end
def absolute_url

0 comments on commit ead32c8

Please sign in to comment.