core: fix feed members query for postgres (#7495)

* support bot: strip all whitespace after /broadcast

* core: fix missing space in feed members query
This commit is contained in:
sh authored and GitHub committed 2026-09-12 14:58:51 +01:00
1 parent 03c8bf5add
commit f00a38846e
3 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -857,7 +857,7 @@ export class SupportBot {
await this.sendToGroup(teamGroupId, `Error: contact ${senderContactId} is not allowed to broadcast`)
return
}
const text = (util.ciContentText(chatItem)?.trim() ?? "").replace(/^\/broadcast\s?/, "")
const text = (util.ciContentText(chatItem)?.trim() ?? "").replace(/^\/broadcast\s*/, "")
if (text === "") {
await this.sendToGroup(teamGroupId, "Error: broadcast text is empty")
return