change response visibility logic
This commit is contained in:
@ -55,7 +55,7 @@ const generateOllamaRequest = async (
|
||||
striptags(notification.status.content).includes("!prompt") &&
|
||||
!notification.status.account.bot && // sanity check, sort of
|
||||
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)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user