about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-26 14:42:05 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-26 14:42:05 +0100
commit882c94a6bf825fb125ed3229db8653d076f1d774 (patch)
treec789dad8af09857f38d5b19905c1d37ea243d312 /app/helpers
parent6c480c8429b323bb1af1b9e59d4ec72456b44352 (diff)
Cleaning up status partial
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/stream_entries_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/stream_entries_helper.rb b/app/helpers/stream_entries_helper.rb
index b044e8a61..a29014d1b 100644
--- a/app/helpers/stream_entries_helper.rb
+++ b/app/helpers/stream_entries_helper.rb
@@ -27,4 +27,8 @@ module StreamEntriesHelper
   def favourited_by_me_class(status)
     user_signed_in? && current_user.account.favourited?(status) ? 'favourited' : ''
   end
+
+  def proper_status(status)
+    status.reblog? ? status.reblog : status
+  end
 end