Change presence embed text

This commit is contained in:
Samuel Elliott 2023-12-27 17:54:59 +00:00
parent 98af75441b
commit 01fdfb1fec
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 5 additions and 1 deletions

View File

@ -1168,6 +1168,10 @@ class Server extends HttpServer {
throw err;
}
} else if (req_url.searchParams.get('fallback-prevent-navigation') === '1') {
res.statusCode = 204;
res.end();
return;
} else {
throw new ResponseError(404, 'not_found', 'No active title');
}

View File

@ -190,7 +190,7 @@ function renderUserTitleEmbedPartialSvg(
<rect x="255" y="${playing_text_offset}" width="10" height="10" fill="${colours.online}"
stroke="${colours.online_border}" stroke-width="1" rx="1" ry="1" stroke-linejoin="round"
/>
<text x="272" y="${playing_text_offset + 10}" fill="${colours.online}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">Playing</text>
<text x="272" y="${playing_text_offset + 10}" fill="${colours.online}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">Online</text>
<text x="255" y="${title_name_text_offset}" fill="${colours.text}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">${game.name}</text>
` + (description ? htmlentities`