fix public work author display
This commit is contained in:
@@ -862,6 +862,13 @@ export function formatPlatformWorkDisplayTags(
|
||||
].slice(0, limit);
|
||||
}
|
||||
|
||||
export function resolvePlatformWorkAuthorDisplayName(
|
||||
entry: PlatformPublicGalleryCard,
|
||||
authorUsername?: string | null,
|
||||
) {
|
||||
return authorUsername?.trim() || entry.authorDisplayName.trim() || '玩家';
|
||||
}
|
||||
|
||||
export function buildPlatformWorldDisplayTags(
|
||||
entry: PlatformWorldCardLike,
|
||||
limit = 3,
|
||||
|
||||
Reference in New Issue
Block a user