chore: Update translations
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Kieran 2024-01-10 14:39:39 +00:00
parent 84bbc5fbef
commit 576c9a2b9e
2 changed files with 13 additions and 10 deletions

View File

@ -5,15 +5,18 @@ export const onRequest: PagesFunction<Env> = async context => {
const next = await context.next();
try {
const rsp = await fetch(`http://nostr.api.v0l.io/api/v1/opengraph/${id}?canonical=${encodeURIComponent("https://zap.stream/%s")}`, {
method: "POST",
body: await next.arrayBuffer(),
headers: {
"user-agent": "zap.stream/1.0 (https://zap.stream)",
"content-type": "text/html",
"accept": "text/html"
},
});
const rsp = await fetch(
`http://nostr.api.v0l.io/api/v1/opengraph/${id}?canonical=${encodeURIComponent("https://zap.stream/%s")}`,
{
method: "POST",
body: await next.arrayBuffer(),
headers: {
"user-agent": "zap.stream/1.0 (https://zap.stream)",
"content-type": "text/html",
accept: "text/html",
},
}
);
if (rsp.ok) {
const body = await rsp.text();
if (body.length > 0) {

View File

@ -541,6 +541,6 @@
"defaultMessage": "z.B. nsec1xyz"
},
"zVDHAu": {
"defaultMessage": "Zap Alert"
"defaultMessage": "Zap-Alarm"
}
}