Set community_note to null when not used

This commit is contained in:
dangered wolf 2024-04-29 21:28:06 -04:00
parent 2062109692
commit d25619470e
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -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') {