change response visibility logic

This commit is contained in:
2025-07-07 01:15:17 +00:00
parent 3466a984ac
commit 71ae54930c

View File

@ -55,7 +55,7 @@ const generateOllamaRequest = async (
striptags(notification.status.content).includes("!prompt") && striptags(notification.status.content).includes("!prompt") &&
!notification.status.account.bot && // sanity check, sort of !notification.status.account.bot && // sanity check, sort of
notification.type === "mention" && notification.type === "mention" &&
notification.status.visibility === "public" // for safety, let's only respond to public messages notification.status.visibility !== "private" // for safety, let's only respond to public messages
) { ) {
if (whitelistOnly && !isFromWhitelistedDomain(notification)) { if (whitelistOnly && !isFromWhitelistedDomain(notification)) {
return; return;