fix wooden fish author and title display
This commit is contained in:
@@ -219,6 +219,7 @@ export type PlatformWoodenFishGalleryCard = {
|
||||
sourceSessionId?: string | null;
|
||||
publicWorkCode: string;
|
||||
ownerUserId: string;
|
||||
authorUsername?: string | null;
|
||||
authorDisplayName: string;
|
||||
worldName: string;
|
||||
subtitle: string;
|
||||
@@ -562,6 +563,10 @@ export function mapWoodenFishWorkToPlatformGalleryCard(
|
||||
? summary.publicWorkCode
|
||||
: buildWoodenFishPublicWorkCode(summary.profileId),
|
||||
ownerUserId: summary.ownerUserId,
|
||||
authorUsername:
|
||||
'authorUsername' in summary && typeof summary.authorUsername === 'string'
|
||||
? summary.authorUsername
|
||||
: null,
|
||||
authorDisplayName:
|
||||
'authorDisplayName' in summary ? summary.authorDisplayName : '玩家',
|
||||
worldName: summary.workTitle,
|
||||
|
||||
Reference in New Issue
Block a user