komentify / meteor-comments-ui

Simple templates for comment functionality in your Meteor App
MIT License
76 stars 40 forks source link

Comments appearing on all posts #65

Closed ritchieng closed 8 years ago

ritchieng commented 8 years ago

Hi,

I managed to get this working for my "profile collection". However when I used it on an additional collection, the second collection had this issue: when I commented on a single document, it appeared on all of the documents in that collection.

{{> commentsBox id=userId}}

I used this line which worked for the first collection.

ritchieng commented 8 years ago

I got a fix for it if anyone is facing this issue. Do not tag it to the user. Tag it to the document id, so do this:

{{> commentsBox id=_id}}

matteodem commented 8 years ago

yes, the id parameter that you specify needs to be different for every document that you want to have different comments on.

ritchieng commented 8 years ago

Thanks! Really appreciate your responses on this package. Looking forward to future updates!