papr/JavaScript-Comments

commentWrapper: last comment overwrites all previous comments after page refresh

Opened this issue · 0 comments

First off, great comments module. Thanks!

I've found this issue while testing example.html:

Scenario:

  1. open example.html
  2. submit 2 or more comments
  3. Reload the page.

Result:
The commentWrapper now shows only the last comment, repeatedly.

Having looked into this a bit I found the issue in api.php, line 155.
Instead of:


it should be:

Cheers,
Rotem