From 365f81b699b72e947a0e9ef3bcb6a0bc49495c25 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 20 Jan 2020 11:08:51 -0500 Subject: [PATCH] Fixing create_post endpoint, changing name url param to title. Fixes #448 --- ui/src/components/create-post.tsx | 2 +- ui/src/components/post-listing.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/create-post.tsx b/ui/src/components/create-post.tsx index eeb9bc6c..ad013d09 100644 --- a/ui/src/components/create-post.tsx +++ b/ui/src/components/create-post.tsx @@ -35,7 +35,7 @@ export class CreatePost extends Component { get params(): PostFormParams { let urlParams = new URLSearchParams(this.props.location.search); let params: PostFormParams = { - name: urlParams.get('name'), + name: urlParams.get('title'), community: urlParams.get('community') || this.prevCommunityName, body: urlParams.get('body'), url: urlParams.get('url'), diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 96825753..0ffabf27 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -807,7 +807,7 @@ export class PostListing extends Component { } get crossPostParams(): string { - let params = `?name=${this.props.post.name}`; + let params = `?title=${this.props.post.name}`; if (this.props.post.url) { params += `&url=${this.props.post.url}`; }