Both Likes and Comments

6 views
Skip to first unread message

Brad Hircock

unread,
Apr 3, 2012, 12:58:59 AM4/3/12
to cocoafi...@googlegroups.com
Hi, 

I want to allow users to comment and like posts. I've tried having reviews with a rating of 1, however this means allow_duplicates needs to be set to true for the same user to create comments on a post they have already liked, as a result there is the risk that a user may create duplicate likes if the server and client become out of sync. Furthermore, there is no way to tell the difference between a like and a comment being deleted.

Am I missing a simple way of doing this?

Cheers, 
Brad 

Wei Kong

unread,
Apr 3, 2012, 2:44:33 AM4/3/12
to cocoafi...@googlegroups.com
Hi Brad,

Can you create custom object comment with a field of the post_id instead? You can still use reviews with a rating to do likes so you can get a total number of like count. We will add object relation soon but for now you have to query your custom comment object that belong to the same post_id.

Thanks,
Wei

___________________
Wei Kong
Co-Founder | Cocoafish
mobile: 415-533-1853

Brad Hircock

unread,
Apr 4, 2012, 1:08:06 AM4/4/12
to cocoafi...@googlegroups.com
Thanks Wei - looking forward to object relation
Reply all
Reply to author
Forward
0 new messages