Mercurial > rsstweet
annotate config/initializers/twitter_tweet_cache_key.rb @ 203:af84c9f23263
Fix redirect for twitter user with nil screen name
Everything else is still kind of broken but it's kind of beyond help anyway
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 19 Oct 2020 03:42:22 +0900 |
parents | 148d8c17cb79 |
children |
rev | line source |
---|---|
96
148d8c17cb79
Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents:
diff
changeset
|
1 class Twitter::Tweet |
148d8c17cb79
Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents:
diff
changeset
|
2 def cache_key |
148d8c17cb79
Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents:
diff
changeset
|
3 "twitter/tweet/#{id}" |
148d8c17cb79
Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents:
diff
changeset
|
4 end |
148d8c17cb79
Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents:
diff
changeset
|
5 end |