Skip to content

Commit 9b1b8cb

Browse files
authored
fix(integration/messenger): Add comment reply check (botpress#14749)
1 parent 66cd547 commit 9b1b8cb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

integrations/messenger/integration.definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { actions } from './definitions/actions'
88
import { messages } from './definitions/channels/channel/messages'
99

1010
export const INTEGRATION_NAME = 'messenger'
11-
export const INTEGRATION_VERSION = '5.1.1'
11+
export const INTEGRATION_VERSION = '5.1.2'
1212

1313
const commonConfigSchema = z.object({
1414
downloadMedia: z

integrations/messenger/src/channels/comment-replies.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const commentReplies: bp.IntegrationProps['channels']['commentReplies'] = {
1313
return
1414
}
1515

16+
if (!ctx.configuration.replyToComments) {
17+
logger.forBot().info('Comment replies are disabled in the configuration')
18+
return
19+
}
20+
1621
if (!id) {
1722
logger.forBot().error('Comment ID is required to reply to comments')
1823
return

0 commit comments

Comments
 (0)