diff --git a/src/app/components/feed/feed.component.html b/src/app/components/feed/feed.component.html
index 843ca83..29bdfdc 100644
--- a/src/app/components/feed/feed.component.html
+++ b/src/app/components/feed/feed.component.html
@@ -15,26 +15,5 @@
+
0">{{post.htmlContent}}
{{post.content}}
diff --git a/src/app/models/post.ts b/src/app/models/post.ts
index eb7f2b3..27a7d8b 100644
--- a/src/app/models/post.ts
+++ b/src/app/models/post.ts
@@ -3,14 +3,16 @@ import { Author } from "./author"
export class Post {
id: number
content: string
+ htmlContent: string
date: string
upvotes: number
downvotes: number
author: Author
- constructor(pId: number, pContent: string, pUpvotes: number, pDownvotes: number, pDate: string, pAuthor: Author) {
+ constructor(pId: number, pContent: string, pHtmlContent: string, pUpvotes: number, pDownvotes: number, pDate: string, pAuthor: Author) {
this.id = pId
this.content = pContent
+ this.htmlContent = pHtmlContent
this.upvotes = pUpvotes
this.downvotes = pDownvotes
this.date = pDate
diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts
index 7031e0f..e774a48 100644
--- a/src/app/services/feed/feed.service.ts
+++ b/src/app/services/feed/feed.service.ts
@@ -99,7 +99,7 @@ export class FeedService {
getBodyForGetAllChats() {
const body = {query: `query {
- getPosts (first: 1000, offset: 0) {id, content, upvotes, downvotes, author{name, handle, id}, createdAt}
+ getPosts (first: 1000, offset: 0) {id, content, htmlContent, upvotes, downvotes, author{name, handle, id}, createdAt}
}`
}
@@ -111,12 +111,13 @@ export class FeedService {
for(let post of pResponse.data.getPosts) {
let id: number = post.id
let content: string = post.content
+ let htmlContent: string = post.htmlContent
let upvotes: number = post.upvotes
let downvotes: number = post.downvotes
let author = new Author(post.author.id, post.author.name, post.author.handle)
let date = post.createdAt
- posts.push(new Post(id, content, upvotes, downvotes, date, author))
+ posts.push(new Post(id, content, htmlContent, upvotes, downvotes, date, author))
}
return posts
}