view config/initializers/ext_twitter_tweet.rb @ 240:c454ea4f7b34 legit-client

Add support for note tweets (with no formatting)
author nanaya <me@nanaya.net>
date Sat, 15 Jul 2023 03:24:56 +0900
parents d35dbc09bd83
children
line wrap: on
line source

class Twitter::Tweet
  def full_text_extended
    attrs[:full_text].printable
  end
  memoize :full_text_extended

  def unescaped_text
    CGI.unescapeHTML full_text_extended
  end
  memoize :unescaped_text
end