릴리스: v0.1.21 저장 피드백과 썸네일 fallback 정리

This commit is contained in:
2026-03-26 14:39:34 +09:00
parent 2374cd9272
commit b3f9f8e4d0
7 changed files with 78 additions and 2 deletions

View File

@@ -86,6 +86,13 @@ function getUserDisplayName(row) {
return email.split('@')[0] || email
}
function getUserAccountName(row) {
if (!row) return ''
const email = (row.email || '').trim()
if (!email) return ''
return email.split('@')[0] || email
}
async function createPool() {
const rootConnection = await mysql.createConnection({
host: DB_HOST,
@@ -565,6 +572,7 @@ async function listPublicTierLists(gameId) {
updatedAt: Number(row.updated_at),
authorId: row.author_id,
authorName: getUserDisplayName(row),
authorAccountName: getUserAccountName(row),
authorAvatarSrc: row.avatar_src || '',
}))
}
@@ -598,6 +606,7 @@ async function listUserTierLists(userId) {
updatedAt: Number(row.updated_at),
isPublic: !!row.is_public,
authorName: getUserDisplayName(row),
authorAccountName: getUserAccountName(row),
authorAvatarSrc: row.avatar_src || '',
}))
}