@@ -66,7 +66,7 @@ type AvatarDescriptor = {
6666 alt : string ;
6767} | null ;
6868
69- type AnonymousResidentialListingTeaserField =
69+ type AnonymousSensitiveListingTeaserField =
7070 | "name"
7171 | "owner_first_name"
7272 | "owner_avatar"
@@ -78,11 +78,11 @@ type AnonymousResidentialListingTeaserField =
7878 | "links"
7979 | "coordinates" ;
8080
81- type AnonymousResidentialListingTeaser < T extends ListingLike > = Omit <
81+ type AnonymousSensitiveListingTeaser < T extends ListingLike > = Omit <
8282 T ,
83- AnonymousResidentialListingTeaserField
83+ AnonymousSensitiveListingTeaserField
8484> &
85- Record < AnonymousResidentialListingTeaserField , null > ;
85+ Record < AnonymousSensitiveListingTeaserField , null > ;
8686
8787type GenerateListingMetadataOptions = ListingSeoOptions & {
8888 includeFullMetadata ?: boolean ;
@@ -270,7 +270,7 @@ export function getListingAvatar(
270270 if ( listing . is_demo ) {
271271 const demoAvatarFilename = listing . avatar ?. split ( "/" ) . pop ( ) ;
272272 const demoListingDisplayName =
273- listing . name || listing . owner_first_name || "Listing" ;
273+ listing . name || listing . owner_first_name || seoCopy . fallbackListingName ;
274274
275275 return {
276276 isDemo : true ,
@@ -325,10 +325,10 @@ export function getListingOwnerAvatar(
325325 } ;
326326}
327327
328- export function getAnonymousResidentialListingTeaser < T extends ListingLike > (
328+ export function getAnonymousSensitiveListingTeaser < T extends ListingLike > (
329329 listing : T ,
330330 user : ListingUser
331- ) : T | AnonymousResidentialListingTeaser < T > {
331+ ) : T | AnonymousSensitiveListingTeaser < T > {
332332 const listingType = normaliseListingType ( listing . type ) ;
333333
334334 if ( ! isSensitiveAnonymousListing ( listingType , user ) ) {
@@ -347,7 +347,7 @@ export function getAnonymousResidentialListingTeaser<T extends ListingLike>(
347347 photos : null ,
348348 links : null ,
349349 coordinates : null ,
350- } as AnonymousResidentialListingTeaser < T > ;
350+ } as AnonymousSensitiveListingTeaser < T > ;
351351}
352352
353353export function getProfileAvatarSource (
0 commit comments