From 9789d1d6cb2c44589670bde8a084d060db0d4fa8 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Sun, 17 Jul 2011 21:18:21 -0400 Subject: [PATCH] Fix issue #1579, like.target, not like.post --- app/helpers/notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 869fa6fc8..9d7a30f17 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -29,7 +29,7 @@ module NotificationsHelper end elsif note.instance_of?(Notifications::Liked) post = note.target - post = post.post if post.is_a? Like + post = post.target if post.is_a? Like if post translation(target_type, :actors => actors, :count => actors_count, :post_author => h(post.author.name), :post_link => link_to(t('notifications.post'), post_path(post), 'data-ref' => post.id, :class => 'hard_object_link').html_safe) else