Fixing create_post endpoint, changing name url param to title. Fixes #448
This commit is contained in:
parent
6312ff333b
commit
365f81b699
2 changed files with 2 additions and 2 deletions
2
ui/src/components/create-post.tsx
vendored
2
ui/src/components/create-post.tsx
vendored
|
@ -35,7 +35,7 @@ export class CreatePost extends Component<any, any> {
|
||||||
get params(): PostFormParams {
|
get params(): PostFormParams {
|
||||||
let urlParams = new URLSearchParams(this.props.location.search);
|
let urlParams = new URLSearchParams(this.props.location.search);
|
||||||
let params: PostFormParams = {
|
let params: PostFormParams = {
|
||||||
name: urlParams.get('name'),
|
name: urlParams.get('title'),
|
||||||
community: urlParams.get('community') || this.prevCommunityName,
|
community: urlParams.get('community') || this.prevCommunityName,
|
||||||
body: urlParams.get('body'),
|
body: urlParams.get('body'),
|
||||||
url: urlParams.get('url'),
|
url: urlParams.get('url'),
|
||||||
|
|
2
ui/src/components/post-listing.tsx
vendored
2
ui/src/components/post-listing.tsx
vendored
|
@ -807,7 +807,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get crossPostParams(): string {
|
get crossPostParams(): string {
|
||||||
let params = `?name=${this.props.post.name}`;
|
let params = `?title=${this.props.post.name}`;
|
||||||
if (this.props.post.url) {
|
if (this.props.post.url) {
|
||||||
params += `&url=${this.props.post.url}`;
|
params += `&url=${this.props.post.url}`;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue