From d25619470e5d59e6e04a3cb6a3685f12ebeae7bd Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 29 Apr 2024 21:28:06 -0400 Subject: [PATCH] Set community_note to null when not used --- src/providers/twitter/processor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/twitter/processor.ts b/src/providers/twitter/processor.ts index 9db4f8d..20bfb88 100644 --- a/src/providers/twitter/processor.ts +++ b/src/providers/twitter/processor.ts @@ -133,6 +133,8 @@ export const buildAPITwitterStatus = async ( text: unescapeText(status.birdwatch_pivot?.subtitle?.text ?? ''), entities: status.birdwatch_pivot.subtitle?.entities ?? [] }; + } else { + apiStatus.community_note = null; } if (status.legacy.lang !== 'unk') {