chore: Update translations
This commit is contained in:
@ -5,15 +5,18 @@ export const onRequest: PagesFunction<Env> = async context => {
|
|||||||
|
|
||||||
const next = await context.next();
|
const next = await context.next();
|
||||||
try {
|
try {
|
||||||
const rsp = await fetch(`http://nostr.api.v0l.io/api/v1/opengraph/${id}?canonical=${encodeURIComponent("https://zap.stream/%s")}`, {
|
const rsp = await fetch(
|
||||||
|
`http://nostr.api.v0l.io/api/v1/opengraph/${id}?canonical=${encodeURIComponent("https://zap.stream/%s")}`,
|
||||||
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: await next.arrayBuffer(),
|
body: await next.arrayBuffer(),
|
||||||
headers: {
|
headers: {
|
||||||
"user-agent": "zap.stream/1.0 (https://zap.stream)",
|
"user-agent": "zap.stream/1.0 (https://zap.stream)",
|
||||||
"content-type": "text/html",
|
"content-type": "text/html",
|
||||||
"accept": "text/html"
|
accept: "text/html",
|
||||||
},
|
},
|
||||||
});
|
}
|
||||||
|
);
|
||||||
if (rsp.ok) {
|
if (rsp.ok) {
|
||||||
const body = await rsp.text();
|
const body = await rsp.text();
|
||||||
if (body.length > 0) {
|
if (body.length > 0) {
|
||||||
|
@ -541,6 +541,6 @@
|
|||||||
"defaultMessage": "z.B. nsec1xyz"
|
"defaultMessage": "z.B. nsec1xyz"
|
||||||
},
|
},
|
||||||
"zVDHAu": {
|
"zVDHAu": {
|
||||||
"defaultMessage": "Zap Alert"
|
"defaultMessage": "Zap-Alarm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user