summaryrefslogtreecommitdiffstats
path: root/ui/src/components/create-post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-20 11:08:51 -0500
committerDessalines <tyhou13@gmx.com>2020-01-20 11:08:51 -0500
commit9c99234e8b408779580681de81d8a4c7740b5bb6 (patch)
tree3f69f10d742e86c5bd00fa32377ec7e77ff77322 /ui/src/components/create-post.tsx
parente31090c9bd2ac2c1a411026add0a3e36631cf8cd (diff)
Fixing create_post endpoint, changing name url param to title. Fixes #448
Diffstat (limited to 'ui/src/components/create-post.tsx')
-rw-r--r--ui/src/components/create-post.tsx2
1 files changed, 1 insertions, 1 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'),