summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-02 12:45:41 -0500
committerDessalines <tyhou13@gmx.com>2020-02-02 12:45:41 -0500
commit96a7e99e57f8c79eead599e6de5d94016f7021e6 (patch)
tree3447364e73f461660c0db87cd2f45ddea16a50ee /ui/src/components/community.tsx
parentcda1e6e74141efea556e81082a3468a012d2926d (diff)
Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends.
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index 866b9eec..18767c51 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -15,7 +15,6 @@ import {
ListingType,
GetPostsResponse,
PostResponse,
- CreatePostLikeResponse,
AddModToCommunityResponse,
BanFromCommunityResponse,
WebSocketJsonResponse,
@@ -294,7 +293,7 @@ export class Community extends Component<any, State> {
this.state.posts.unshift(data.post);
this.setState(this.state);
} else if (res.op == UserOperation.CreatePostLike) {
- let data = res.data as CreatePostLikeResponse;
+ let data = res.data as PostResponse;
let found = this.state.posts.find(c => c.id == data.post.id);
found.score = data.post.score;