| @@ -495,14 +495,14 @@ | ||
| 495 | 495 | if ( $file ) { |
| 496 | 496 | $shape['fileName'] = (string) $file['display_name']; |
| 497 | 497 | $shape['ownerId'] = (int) $file['owner_id']; |
| 498 | 498 | $owner = get_userdata( (int) $file['owner_id'] ); |
| 499 | - $shape['ownerName'] = $owner ? $owner->display_name : ''; | |
| 499 | + $shape['ownerName'] = $owner ? openstation_plain_text_title( $owner->display_name ) : ''; | |
| 500 | 500 | $shape['ownerAvatar'] = $owner ? get_avatar_url( $owner->ID, array( 'size' => 48 ) ) : ''; |
| 501 | 501 | } |
| 502 | 502 | // Principal enrichment for the owner-side share list. |
| 503 | 503 | $principal = get_userdata( (int) $row['principal_ref'] ); |
| 504 | - $shape['displayName'] = $principal ? $principal->display_name : ''; | |
| 504 | + $shape['displayName'] = $principal ? openstation_plain_text_title( $principal->display_name ) : ''; | |
| 505 | 505 | $shape['avatarUrl'] = $principal ? get_avatar_url( $principal->ID, array( 'size' => 48 ) ) : ''; |
| 506 | 506 | return $shape; |
| 507 | 507 | } |
| 508 | 508 | |