dokufreaks/plugin-blogtng

Does not send emails to blog author if comments_subscription is disabled

Opened this issue · 0 comments

mthu commented

While send_subscriber_mails function contains a condition

if(!$this->getConf('comments_subscription')) return;

which stops just after the notification to the author is sent (but not to the subscribers), it is not called from save (caller function) if subscription is disabled
$this->send_subscriber_mails($comment);

This combination makes the case "send to the authors only" unavailable. It allows either all users to get subscribed, or nothing.

I guess this is not intended behavior, probably the send_subscriber_mails should be called in every case, independently on comments_subscription setting.