aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/tweet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tweet.rb')
-rw-r--r--app/models/tweet.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/tweet.rb b/app/models/tweet.rb
index 9952d74..78adb2e 100644
--- a/app/models/tweet.rb
+++ b/app/models/tweet.rb
@@ -32,6 +32,10 @@ class Tweet < ActiveRecord::Base
joins("INNER JOIN ((#{un})) reactions ON reactions.tweet_id = tweets.id")
}
+ def twitter_url
+ "https://twitter.com/#{self.user.screen_name}/status/#{self.id}"
+ end
+
def notify_favorite
if Settings.notification.enabled
Notification.notify_favorite(self)