diff --git a/src/providers/twitter/processor.ts b/src/providers/twitter/processor.ts index f6e29c3..7db0ebf 100644 --- a/src/providers/twitter/processor.ts +++ b/src/providers/twitter/processor.ts @@ -103,7 +103,7 @@ export const buildAPITwitterStatus = async ( apiStatus.possibly_sensitive = status.legacy.possibly_sensitive; - if (status.views.state === 'EnabledWithCount') { + if (status.views?.state === 'EnabledWithCount') { apiStatus.views = parseInt(status.views.count || '0') ?? null; } else { apiStatus.views = null;