홈 피드와 템플릿 분리
This commit is contained in:
@@ -4,6 +4,7 @@ import { useRoute, useRouter } from 'vue-router'
|
||||
import { api } from '../lib/api'
|
||||
import { toApiUrl } from '../lib/runtime'
|
||||
import { editorPath } from '../lib/paths'
|
||||
import { displayInitialFrom } from '../lib/display'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -30,7 +31,7 @@ function avatarSrcOf(tierList) {
|
||||
}
|
||||
|
||||
function avatarFallbackOf(tierList) {
|
||||
return (tierList.authorAccountName || 'u').trim().charAt(0).toUpperCase() || '?'
|
||||
return displayInitialFrom(tierList.authorName, tierList.authorAccountName, '?')
|
||||
}
|
||||
|
||||
function tierListThumbnailUrl(tierList) {
|
||||
|
||||
Reference in New Issue
Block a user