From: Dessalines Date: Sat, 17 Aug 2019 01:46:39 +0000 (-0700) Subject: Fixing create post bug. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/save/static/%24%7Bargs.pageFn.next%7D?a=commitdiff_plain;h=1ae50f89c6d8c6a0a3087cd1a003aa3dd000ad31;p=lemmy.git Fixing create post bug. - Fixes #202 --- diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 704b1cdd..42620c9f 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -4,7 +4,7 @@ import { Subscription } from "rxjs"; import { retryWhen, delay, take } from 'rxjs/operators'; import { PostForm as PostFormI, Post, PostResponse, UserOperation, Community, ListCommunitiesResponse, ListCommunitiesForm, SortType, SearchForm, SearchType, SearchResponse } from '../interfaces'; import { WebSocketService, UserService } from '../services'; -import { msgOp, getPageTitle, debounce, capitalizeFirstLetter } from '../utils'; +import { msgOp, getPageTitle, debounce, validURL, capitalizeFirstLetter } from '../utils'; import * as autosize from 'autosize'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; @@ -91,7 +91,7 @@ export class PostForm extends Component {
- + {this.state.suggestedTitle &&
#
} @@ -100,7 +100,7 @@ export class PostForm extends Component {
-