홈 피드와 템플릿 분리
This commit is contained in:
@@ -5,6 +5,7 @@ import { api } from '../lib/api'
|
||||
import { editorPath, loginPath, userProfilePath } from '../lib/paths'
|
||||
import { toApiUrl } from '../lib/runtime'
|
||||
import { useToast } from '../composables/useToast'
|
||||
import { displayInitialFrom } from '../lib/display'
|
||||
|
||||
const router = useRouter()
|
||||
const toast = useToast()
|
||||
@@ -38,7 +39,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