The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
subscription type "...
 
Notifications
Clear all

Bug [Solved] subscription type "new replies to my comments." handled wrong

2 Posts
2 Users
0 Reactions
968 Views
(@martin-buw)
Posts: 1
New Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#7830]

Hi!

The subscription type "new replies to my comments" sends notification for every reply on any comment in the current post, not only replies to the own comments. There is no check, if the parent comment is from the notified subscriber in WpdiscuzHelperEmail->notifyAllCommentSubscribers();

 

for now, I fixed this by adding a filter to wpdiscuz_email_notification

 

public function fixWpDiscuzAllCommentNotification($origResult, $emailData, $comment) {
        $wpDiscuzDb = new \WpdiscuzDBManager();
        $subscription = $wpDiscuzDb->hasSubscription($comment->comment_post_ID, $emailData["email"]);
        if ((count($subscription) > 0) && ($subscription["type"] == $wpDiscuzDb::SUBSCRIPTION_ALL_COMMENT)) {
            if ($comment->comment_parent > 0) {
                $parentComment = get_comment($comment->comment_parent);
                if ($parentComment->comment_author_email == $emailData["email"]) {
                    return true;
                }
            }
            return false;
        } else
            return $origResult;
    }

 
Posted : 02/01/2024 3:32 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi @martin-buw

Thank you for letting us know. 

The issue is fixed in the latest version of the wpDiscuz plugin (V7.6.14).


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 08/01/2024 1:28 pm