added post guid for local notifications

This commit is contained in:
maxwell 2010-12-09 13:56:53 -08:00
parent 166202d0b2
commit 5fb782a988

View file

@ -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)