昇進したため、高度な機能について学ぶ時期が来ました!`というメッセージは、私のフォーラムの管理者である私にのみ送信されます。ディスクボットの名前を変更しましたが、それ以外は何も変更していません。
より多くのユーザーがこのメッセージを受け取ると仮定するのは公平だと思います。何らかの理由で、私とボットだけが受信者として数回受け取りました。ただし、メッセージはユーザーがTL2に昇進したことと一致していました。そのユーザーになりすましましたが、その人のメールボックスや通知にメッセージが表示されませんでした。私(管理者)はこれらのメールを受け取るべきではなく、昇進した人だけが受け取るべきです。
ここで何がうまくいっていないのでしょうか?
site contact group name にグループを追加しましたか?
「いいね!」 1
よくわかりません。OPはdiscobotメッセージが間違った人に送られていると言っているのだと思います。
最近、ここにsite contact group nameを設定しましたが、少し見てみると同じようなことが起こっているようです。重複していると思いましたが、今は確信がありません。 しかし、あまり深く調べる前に@AquaL1teさんの言うことを待つつもりです。
「いいね!」 3
確かに、コンタクトグループが原因である可能性があります。
また、site contact group を管理者に送信するように設定しました。これはTLプロモーションメールでは機能しますが、discobotメッセージは私にのみ送信され、受信すべき相手には送信されていないようです。これはバグでしょうか?それとも私の設定の問題ではありませんか?
「いいね!」 1
少し調査しましたが、@AquaL1te さん、あなたの言う通りかもしれません。昇格した際に送られる「Now that you’ve been promoted, it’s time to learn about some advanced features!」というDiscobotのプライベートメッセージは、受信者の中で私だけが受け取っているようです。
これをバグ報告に移動します
「いいね!」 1
nbianca
(Bianca)
2023 年 6 月 7 日午後 6:22
16
問題を特定し、このプルリクエストで修正しました。現在レビュー待ちです。
main ← fix_tl2_message
opened 06:19PM - 07 Jun 23 UTC
Usually, when a user is promoted to TL2 two messages are sent. The first one is … a system message 'tl2_promotion_message' which triggers a 'system_message_sent' Discourse event.
When the event is fired and if Discourse Narrative Bot is enabled, then a second message is sent to the recipient of the first message. The recipients was determined by looking at the list of users that can access that topic and pick the last one. This method does not work if 'site_contact_group_name' site setting is set because it adds the group in the list of recipients.
A solution to this problem would have been to select the last user in the list of 'topic_allowed_users', but an even better solution is to pass the name of the recipients when the 'system_message_sent' Discourse event is fired.
すぐにマージされるので、その後サイトをアップデートしてバグを修正できます。
「いいね!」 5
nbianca
(Bianca)
クローズされました:
2023 年 6 月 12 日午前 5:00
17
このトピックは4日後に自動的に閉じられました。新しい返信は許可されていません。