Skip to content

Commit a714331

Browse files
committed
Merge branch '0.1-maintenance'
2 parents 96f421b + bc395a3 commit a714331

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
needs: [test]
4141
runs-on: ubuntu-latest
4242
permissions:
43-
contents: read
43+
contents: write
4444
id-token: write
4545
steps:
4646
- uses: actions/checkout@v4

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ Version 0.2.0
77
To be released.
88

99

10+
Version 0.1.1
11+
-------------
12+
13+
Released on February 10, 2025.
14+
15+
- Fixed a bug where direct and followers-only messages that reply to a bot
16+
had been forwarded to the bot's followers.
17+
18+
1019
Version 0.1.0
1120
-------------
1221

docs/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ to turn it on in your *deno.json* settings:
5757
~~~~ json [deno.json] {5}
5858
{
5959
"imports": {
60-
"@fedify/botkit": "jsr:@fedify/botkit@0.1.0"
60+
"@fedify/botkit": "jsr:@fedify/botkit@0.1.1"
6161
},
6262
"unstable": ["temporal"]
6363
}

src/bot-impl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)