mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-14 08:55:20 +01:00
Consolidate BASE_HTML
This commit is contained in:
parent
4d199316cb
commit
c9aa12840e
2 changed files with 6 additions and 7 deletions
|
@ -219,8 +219,8 @@ router.get('/owoembed', async (request: IRequest) => {
|
||||||
|
|
||||||
/* Fallbacks */
|
/* Fallbacks */
|
||||||
const text = searchParams.get('text') || 'Twitter';
|
const text = searchParams.get('text') || 'Twitter';
|
||||||
const author = searchParams.get('author') || 'dangeredwolf';
|
const author = searchParams.get('author') || 'jack';
|
||||||
const status = searchParams.get('status') || '1547514042146865153';
|
const status = searchParams.get('status') || '20';
|
||||||
|
|
||||||
const random = Math.floor(Math.random() * Object.keys(motd).length);
|
const random = Math.floor(Math.random() * Object.keys(motd).length);
|
||||||
const [name, url] = Object.entries(motd)[random];
|
const [name, url] = Object.entries(motd)[random];
|
||||||
|
|
|
@ -27,11 +27,10 @@ export const Strings = {
|
||||||
███ ███ ▐█▌▐█▌ ███ ▐██▌ ███ ▐██▌ ▐█▌ ▐█▌ ▐██▌
|
███ ███ ▐█▌▐█▌ ███ ▐██▌ ███ ▐██▌ ▐█▌ ▐█▌ ▐██▌
|
||||||
███ ███ ███ ███ ███ ▐█████████▌ ▐████ ▐████ ▐████
|
███ ███ ███ ███ ███ ▐█████████▌ ▐████ ▐████ ▐████
|
||||||
███
|
███
|
||||||
███ A better Tweet embedding service
|
███ A better way to embed Tweets on Discord, Telegram, and more.
|
||||||
███ by dangered wolf, et al.
|
███ Worker build ${RELEASE_NAME}
|
||||||
|
|
||||||
--><head>{headers}</head>
|
--><head>{headers}</head><body></body></html>`,
|
||||||
<!-- Worker build ${RELEASE_NAME} -->`,
|
|
||||||
ERROR_HTML: `<!DOCTYPE html>
|
ERROR_HTML: `<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -115,7 +114,7 @@ This is caused by Twitter API downtime or a new bug. Try again in a little while
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>${BRANDING_NAME}</h1>
|
<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>
|
<h2>Worker release: ${RELEASE_NAME}</h2>
|
||||||
<br>
|
<br>
|
||||||
<h3>Stats for nerds:</h3>
|
<h3>Stats for nerds:</h3>
|
||||||
|
|
Loading…
Add table
Reference in a new issue