File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ Version 0.1.1
66
77To be released.
88
9+ - Fixed a bug where direct and followers-only messages that reply to a bot
10+ had been forwarded to the bot's followers.
11+
912
1013Version 0.1.0
1114-------------
Original file line number Diff line number Diff line change @@ -633,7 +633,11 @@ export class BotImpl<TContextData> implements Bot<TContextData> {
633633 messageClasses . includes ( replyTarget . class )
634634 ) {
635635 const message = await getMessage ( ) ;
636- await ctx . forwardActivity ( this , "followers" ) ;
636+ if (
637+ message . visibility === "public" || message . visibility === "unlisted"
638+ ) {
639+ await ctx . forwardActivity ( this , "followers" ) ;
640+ }
637641 await this . onReply ( session , message ) ;
638642 }
639643 for await ( const tag of object . getTags ( ctx ) ) {
You can’t perform that action at this time.
0 commit comments