Mercurial > rsstweet
comparison app/helpers/application_helper.rb @ 204:70e90ea4b870
Fix uri for nil user
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 19 Oct 2020 04:08:30 +0900 |
parents | 52252ae4b580 |
children | 12287b32fbda |
comparison
equal
deleted
inserted
replaced
203:af84c9f23263 | 204:70e90ea4b870 |
---|---|
18 | 18 |
19 text.gsub /https?:\/\/t\.co\/[A-Za-z0-9]+/ do |url| | 19 text.gsub /https?:\/\/t\.co\/[A-Za-z0-9]+/ do |url| |
20 urls[url] || url | 20 urls[url] || url |
21 end | 21 end |
22 end | 22 end |
23 | |
24 def status_url(tweet) | |
25 "https://twitter.com/#{tweet.user.screen_name.presence || '_'}/status/#{tweet.id}" | |
26 end | |
23 end | 27 end |