diff --git a/angular-primeng-app/src/app/components/post-details/post-details.component.html b/angular-primeng-app/src/app/components/post-details/post-details.component.html
index a257841..ece41fc 100644
--- a/angular-primeng-app/src/app/components/post-details/post-details.component.html
+++ b/angular-primeng-app/src/app/components/post-details/post-details.component.html
@@ -7,13 +7,13 @@
{{ post.title }}
@if (isTeam) {
-
+
@for (coAuthor of post.coAuthors; track coAuthor.username) {
}
} @else {
-
+
}
{{post.author.name}} {{isTeam && post.coAuthors.length > 0 ? 'with ' + post.coAuthors.length + ' co-author' + (post.coAuthors.length > 1 ? 's' : '') : ''}}
diff --git a/angular-primeng-app/src/app/graphql.operations.ts b/angular-primeng-app/src/app/graphql.operations.ts
index a0b67c9..0bbf399 100644
--- a/angular-primeng-app/src/app/graphql.operations.ts
+++ b/angular-primeng-app/src/app/graphql.operations.ts
@@ -136,7 +136,9 @@ export const GET_SINGLE_POST = gql`
name
}
author {
+ id
name
+ username
profilePicture
}
coAuthors {
@@ -172,7 +174,9 @@ export const SEARCH_POSTS = gql`
url
}
author {
+ id
name
+ username
}
publishedAt
title
diff --git a/angular-primeng-app/src/app/models/post.ts b/angular-primeng-app/src/app/models/post.ts
index c427b42..bccab65 100644
--- a/angular-primeng-app/src/app/models/post.ts
+++ b/angular-primeng-app/src/app/models/post.ts
@@ -24,7 +24,9 @@ export interface Tag {
}
export interface Author {
+ id : string,
name: string;
+ username : string ,
profilePicture: string;
socialMediaLinks: SocialMediaLinks;
}