diff --git a/src/embed/status.ts b/src/embed/status.ts index 8a4e5ea..14d56e5 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -10,7 +10,7 @@ import { renderInstantView } from '../render/instantview'; import { constructTwitterThread } from '../providers/twitter/conversation'; export const returnError = (c: Context, error: string): Response => { - return c.text( + return c.html( Strings.BASE_HTML.format({ lang: '', headers: [ @@ -18,7 +18,7 @@ export const returnError = (c: Context, error: string): Response => { `` ].join('') }) - ); + ) as Response; }; /* Handler for Twitter statuses (Tweets). Like Twitter, we use the terminologies interchangably. */ diff --git a/src/user.ts b/src/user.ts index 256ead3..71d6503 100644 --- a/src/user.ts +++ b/src/user.ts @@ -12,7 +12,7 @@ export const returnError = (c: Context, error: string): Response => { `` ].join('') }) - ); + ) as Response; }; /* Handler for Twitter users */