about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorShel R <Yiskah.Raphen@gmail.com>2017-04-07 22:11:24 -0400
committerGitHub <noreply@github.com>2017-04-07 22:11:24 -0400
commit451b7431c9d0a8bb34642d5af599bc48701376d2 (patch)
tree1be076bbade89fa78872d09b8961b5a183230e25 /app/models/status.rb
parent8fa8004a2b090a3911cce11473bb926ebd6782a6 (diff)
parent530725ba3c4fefc6fd3e45cda588daa5af2ea9ec (diff)
Merge branch 'master' into patch-2
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 6948ad77c..7e3dd3e28 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -62,8 +62,12 @@ class Status < ApplicationRecord
     reply? ? :comment : :note
   end
 
+  def proper
+    reblog? ? reblog : self
+  end
+
   def content
-    reblog? ? reblog.text : text
+    proper.text
   end
 
   def target