Skip to content

Commit

Permalink
feat: user model improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Apr 5, 2024
1 parent 7948347 commit b3e412b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class User {

@SerializableMember({
rdf: {
predicate: [vcard.fn, vcard.hasName, foaf.name],
predicate: [vcard.fn, vcard.hasName, foaf.name, schema.name],
},
})
private _formattedName: string;
Expand All @@ -58,7 +58,7 @@ export class User {

@SerializableMember({
rdf: {
predicate: [vcard.hasPhoto],
predicate: [vcard.hasPhoto, foaf.img, schema.image],
serializer: (value: string) => {
return DataFactory.namedNode(value);
},
Expand Down

0 comments on commit b3e412b

Please sign in to comment.