From 882c94a6bf825fb125ed3229db8653d076f1d774 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 26 Mar 2016 14:42:05 +0100 Subject: Cleaning up status partial --- app/helpers/stream_entries_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers') 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 -- cgit