diff --git a/index.ts b/index.ts index 0fd03b0..fa8b8ad 100644 --- a/index.ts +++ b/index.ts @@ -53,7 +53,7 @@ export async function handler(event: APIGatewayProxyEventV2WithRequestContext conf.visibility === note.visibility); if (!twitterApiConf) { + console.log(`Twitter API conf not found for visibility ${note.visibility}`); + return buildResponse({ statusCode: 200, body: JSON.stringify({ @@ -380,14 +384,20 @@ function joinTags(tags: Set): string { function isValidRequest(note: WebhookNote): boolean { if (note.mentions?.length > 0) { - return false + console.log('Mentions found; skipping'); + + return false; } if (note.reply) { + console.log('Reply found; skipping'); + return false; } if (note.visibility === 'specified') { + console.log('Specified visibility found; skipping'); + return false; }