Mercurial > rsstweet
comparison app/views/tweets/_tweet.html.erb @ 100:c1d5d8be92c6
Add support for extended tweets
author | nanaya <me@myconan.net> |
---|---|
date | Fri, 23 Sep 2016 23:02:16 +0900 |
parents | c5c095f6981e |
children | 1251b3d6ec5d |
comparison
equal
deleted
inserted
replaced
99:56fd4829e599 | 100:c1d5d8be92c6 |
---|---|
4 </p> | 4 </p> |
5 | 5 |
6 <%= render "tweet", :tweet => tweet.retweeted_status %> | 6 <%= render "tweet", :tweet => tweet.retweeted_status %> |
7 <% else%> | 7 <% else%> |
8 <p> | 8 <p> |
9 <%= auto_link(expand_url(tweet.text)).gsub("\n", "<br>").html_safe %> | 9 <%# FIXME: Twitter gem doesn't support extended mode when writing this %> |
10 <%= auto_link(expand_url(tweet.to_hash[:full_text])).gsub("\n", "<br>").html_safe %> | |
10 </p> | 11 </p> |
11 | 12 |
12 <p> | 13 <p> |
13 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> | 14 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> |
14 <%= image_tag tweet.user.profile_image_url_https %> | 15 <%= image_tag tweet.user.profile_image_url_https %> |