diff --git a/src/server.ts b/src/server.ts index 51a87d1..8d8f184 100644 --- a/src/server.ts +++ b/src/server.ts @@ -19,6 +19,7 @@ const statusRequest = async ( ) => { const { handle, id, mediaNumber, language, prefix } = request.params; const url = new URL(request.url); + // eslint-disable-next-line sonarjs/no-duplicate-string const userAgent = request.headers.get('User-Agent') || ''; /* User Agent matching for embed generators, bots, crawlers, and other automated diff --git a/src/types/types.d.ts b/src/types/types.d.ts index fc5d971..4ba1ffa 100644 --- a/src/types/types.d.ts +++ b/src/types/types.d.ts @@ -58,6 +58,7 @@ interface APITranslate { source_lang_en: string; target_lang: string; } + interface BaseUser { id?: string; name?: string; @@ -65,6 +66,7 @@ interface BaseUser { avatar_url?: string; banner_url?: string; } + interface APITweetAuthor extends BaseUser { avatar_color: string; }