diff --git a/app/helpers/sockets_helper.rb b/app/helpers/sockets_helper.rb index 42c6e78a4..8b48069a1 100644 --- a/app/helpers/sockets_helper.rb +++ b/app/helpers/sockets_helper.rb @@ -50,9 +50,12 @@ module SocketsHelper end if object.is_a? Comment + post = object.post action_hash[:comment_id] = object.id - action_hash[:my_post?] = (object.post.person.owner.id == uid) + action_hash[:my_post?] = (post.person.owner.id == uid) action_hash[:notification] = notification(object) + action_hash[:post_guid] = post.id + end action_hash[:mine?] = object.person && (object.person.owner.id == uid) if object.respond_to?(:person)