added post guid for local notifications
This commit is contained in:
parent
166202d0b2
commit
5fb782a988
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue