Fix issue #1579, like.target, not like.post
This commit is contained in:
parent
d30228abb8
commit
9789d1d6cb
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ module NotificationsHelper
|
||||||
end
|
end
|
||||||
elsif note.instance_of?(Notifications::Liked)
|
elsif note.instance_of?(Notifications::Liked)
|
||||||
post = note.target
|
post = note.target
|
||||||
post = post.post if post.is_a? Like
|
post = post.target if post.is_a? Like
|
||||||
if post
|
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)
|
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
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue