We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在用joyqi的Mailer插件来发送评论通知,插件激活部分的代码是:
public static function activate() { Feedback::pluginHandle()->finishComment = __CLASS__ . '::send'; Service::pluginHandle()->sendMail = __CLASS__ . '::sendMail'; }
在前台通过评论框提交评论都可以正常发送邮件,但是登录后台在 管理->评论处进行回复评论,被评论的人就没有触发邮件通知。 查看/var/Widget/Comments/Edit.php 文件 replyComment() 里面有:
/** 评论完成接口 */ self::pluginHandle()->call('finishComment', $this);
看起来在后台进行回复评论时,似乎没有生效?
复现的步骤:
后台回复评论和在插件中调用 Widget\Comments\Edit::replyComment() ,可以触发finishComment,从而发送邮件通知.
The text was updated successfully, but these errors were encountered:
在 1.2.1 里确实有可能无法触发,你试一下 1.3.0 的开发版是否可以触发
1.2.1
1.3.0
Sorry, something went wrong.
刚刚升级到1.3开发版,测试如下:
我的插件中调用的代码如下:
use Widget\Comments\Edit as CommentsEdit; Typecho_Widget::widget('Widget_User')->to($user); if(!$user->simpleLogin($replyUid)){ return; } $comment = CommentsEdit::alloc(null, ['coid' => $coid, 'text' => $replyText], function (CommentsEdit $comment) use ($action) { switch ($action) { case 'approved': $comment->approvedComment(); break; case 'spam': $comment->spamComment(); break; case 'delete': $comment->deleteComment(); break; case 'reply': $comment->replyComment(); break; } });
激活部分
public static function activate() { Feedback::pluginHandle()->finishComment = [__CLASS__, 'sendToTelegram']; Service::pluginHandle()->sendComment = [__CLASS__, 'sendComment']; Helper::addRoute("telegramCallback", "/telegram/comment", Action::class, "action","index"); }
感觉1.3应该也存在同样的问题
No branches or pull requests
描述这个 Bug
我在用joyqi的Mailer插件来发送评论通知,插件激活部分的代码是:
在前台通过评论框提交评论都可以正常发送邮件,但是登录后台在 管理->评论处进行回复评论,被评论的人就没有触发邮件通知。
查看/var/Widget/Comments/Edit.php 文件 replyComment() 里面有:
看起来在后台进行回复评论时,似乎没有生效?
复现方式
复现的步骤:
期望的结果
后台回复评论和在插件中调用 Widget\Comments\Edit::replyComment() ,可以触发finishComment,从而发送邮件通知.
平台
The text was updated successfully, but these errors were encountered: