Consolidate BASE_HTML

This commit is contained in:
dangered wolf 2023-04-18 16:22:01 -04:00
parent 4d199316cb
commit c9aa12840e
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 6 additions and 7 deletions

View file

@ -219,8 +219,8 @@ router.get('/owoembed', async (request: IRequest) => {
/* Fallbacks */
const text = searchParams.get('text') || 'Twitter';
const author = searchParams.get('author') || 'dangeredwolf';
const status = searchParams.get('status') || '1547514042146865153';
const author = searchParams.get('author') || 'jack';
const status = searchParams.get('status') || '20';
const random = Math.floor(Math.random() * Object.keys(motd).length);
const [name, url] = Object.entries(motd)[random];

View file

@ -27,11 +27,10 @@ export const Strings = {
A better Tweet embedding service
by dangered wolf, et al.
A better way to embed Tweets on Discord, Telegram, and more.
Worker build ${RELEASE_NAME}
--><head>{headers}</head>
<!-- Worker build ${RELEASE_NAME} -->`,
--><head>{headers}</head><body></body></html>`,
ERROR_HTML: `<!DOCTYPE html>
<html lang="en">
<head>
@ -115,7 +114,7 @@ This is caused by Twitter API downtime or a new bug. Try again in a little while
</head>
<body>
<h1>${BRANDING_NAME}</h1>
<h3>A better Tweet embedding service, by dangered wolf, et al.</h2>
<h3>A better way to embed Tweets on Discord, Telegram, and more.</h2>
<h2>Worker release: ${RELEASE_NAME}</h2>
<br>
<h3>Stats for nerds:</h3>