릴리스: v0.1.21 저장 피드백과 썸네일 fallback 정리
This commit is contained in:
@@ -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 || '',
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user