Sha256: 6ebda1f7721758430d5d6fce67fe96e36affd2681c5373b050898b31bfa556e0
Contents?: true
Size: 588 Bytes
Versions: 9
Compression:
Stored size: 588 Bytes
Contents
module Georgia module TwitterHelper def tweets_for account begin @tweets ||= Twitter.user_timeline(account) rescue Exception => ex logger.error "Twitter retrieval: " << ex.message ensure @tweets ||= [] end @tweets end def auto_link_tweet tweet if tweet.in_reply_to_screen_name auto_link(tweet.text.gsub(/(@\w+)/, link_to("@#{tweet.in_reply_to_screen_name}", "http://twitter.com/#{tweet.in_reply_to_screen_name}"))).html_safe else auto_link(tweet.text).html_safe end end end end
Version data entries
9 entries across 9 versions & 1 rubygems