Mercurial > rsstweet
comparison app/helpers/application_helper.rb @ 257:c6a50441a58d
It's now X
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:48:25 +0900 |
parents | 3ac13a9e593d |
children | e2150dce4e90 |
comparison
equal
deleted
inserted
replaced
256:604b69827fb2 | 257:c6a50441a58d |
---|---|
20 def status_url(tweet) | 20 def status_url(tweet) |
21 status_url_base tweet[:user][:username], tweet[:id] | 21 status_url_base tweet[:user][:username], tweet[:id] |
22 end | 22 end |
23 | 23 |
24 def status_url_base(username, id) | 24 def status_url_base(username, id) |
25 "https://twitter.com/#{username.presence || '_'}/status/#{id}" | 25 "https://x.com/#{username.presence || '_'}/status/#{id}" |
26 end | 26 end |
27 end | 27 end |