From 5fb782a988bd8d67f7d4e535b5210fadf760b1a4 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 9 Dec 2010 13:56:53 -0800 Subject: [PATCH] added post guid for local notifications --- app/helpers/sockets_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)