wpsharks / comment-mail

A WordPress plugin enabling email subscriptions for comments.
http://comment-mail.com
GNU General Public License v3.0
8 stars 3 forks source link

Subscribe without commenting shows unapproved comments #299

Closed IvanRF closed 7 years ago

IvanRF commented 7 years ago

I just saw something weird in my Subscriptions list and found this bug: Comments that were not yet approved are shown in the subscribe without commenting page (Add New Subscription).

I had a user subscribed to a comment that I did not approved 😄

raamdev commented 7 years ago

@IvanRF Thanks for the report! We'll get this tested soon.

renzms commented 7 years ago

@raamdev

Tested this under the following conditions:

When commenting on a post as either a registered/unregistered user, the comment will appear to the user as an unapproved comment awaiting moderation after submission of the comment.

Hitting reply to the unapproved comment will allow the same user to Subscribe without commenting to the comment.

screen shot 2016-09-30 at 1 19 05 pm

They will then be taken to the Add a new subscription page, where they can view all comments, including the unapproved comments.

screen shot 2016-09-30 at 1 19 48 pm

IvanRF commented 7 years ago

Also, without hitting Reply if another user enters the page and just selects Subscribe without commenting, he will see the unapproved comment too.

renzms commented 7 years ago

Also, without hitting Reply if another user enters the page and just selects Subscribe without commenting, he will see the unapproved comment too.

@raamdev

I can confirm this as well, subscribing without commenting allows anyone to view the whole comments list including unapproved comments.

raamdev commented 7 years ago

@renzms Thanks for testing! That confirms this is a bug that needs to be fixed.


@jaswsinc Bug is as follows: Unapproved comments should not appear in the list of comments to subscribe to when subscribing without commenting.

jaswrks commented 7 years ago

Copy that. Referencing this block. Estimate 1 day.

jaswrks commented 7 years ago

Next Release Changelog:

raamdev commented 7 years ago

@renzms Could you please test a dev build to confirm that this issue has been resolved?

renzms commented 7 years ago

@raamdev / @jaswsinc

Hi Guys!

I can confirm that unapproved comments no longer appear in the Subscriptions list! 👍

screen shot 2016-11-04 at 8 11 45 pm


However...

I have observed a new minor issue with the Comment list field on the Subscriptions page.

Expected Behavior:

screen shot 2016-11-04 at 8 11 38 pm

Observed Behavior:

screen shot 2016-11-04 at 8 11 27 pm

screen shot 2016-11-04 at 8 14 35 pm

screen shot 2016-11-04 at 8 14 46 pm

raamdev commented 7 years ago

@jaswsinc See above. ↑ Can we just show a message in place of the select box that says "This post has no comments." when there are no comments for the selected post?

jaswrks commented 7 years ago

Yes, that sounds like a good idea to me also. Please fork that into a new issue.

raamdev commented 7 years ago

Please fork that into a new issue.

Done. I don't think that issue warrants holding up the Comment Mail RC, so I'll leave that work for a future release milestone.

renzms commented 7 years ago

@raamdev

Other than the issue here about the numerical values: https://github.com/websharks/comment-mail/issues/310

Tested to make sure it doesn't show unapproved comments and it's working! 👍

raamdev commented 7 years ago

Comment Mail v161118 has been released and includes changes from this GitHub Issue. See the v161118 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#299).