From: Dessalines Date: Mon, 20 Jan 2020 16:08:51 +0000 (-0500) Subject: Fixing create_post endpoint, changing name url param to title. Fixes #448 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/search?a=commitdiff_plain;h=9c99234e8b408779580681de81d8a4c7740b5bb6;p=lemmy.git Fixing create_post endpoint, changing name url param to title. Fixes #448 --- 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}`; }