attempt fix of bios

This commit is contained in:
hazycora 2023-12-21 12:12:51 -06:00
parent fe257ddb05
commit 06a44e4f05
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

View file

@ -92,10 +92,7 @@ app.get('/:user', async function (req, res) {
await reposResp.json() await reposResp.json()
]) ])
user.repo_count = repos.length user.repo_count = repos.length
user.description = user.description user.description = user.description?.split('---\r\n')[0]
?.split('---\r\n')
.slice(0, -1)
.join('---\r\n')
const html = await eta.renderAsync('user', { const html = await eta.renderAsync('user', {
user, user,
debug debug