diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-20 11:08:51 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-20 11:08:51 -0500 |
commit | 9c99234e8b408779580681de81d8a4c7740b5bb6 (patch) | |
tree | 3f69f10d742e86c5bd00fa32377ec7e77ff77322 | |
parent | e31090c9bd2ac2c1a411026add0a3e36631cf8cd (diff) |
Fixing create_post endpoint, changing name url param to title. Fixes #448
-rw-r--r-- | ui/src/components/create-post.tsx | 2 | ||||
-rw-r--r-- | 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<any, any> { 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<PostListingProps, PostListingState> { } 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}`; } |