From: Dessalines Date: Sun, 29 Dec 2019 21:56:55 +0000 (-0500) Subject: Preview image type post. X-Git-Url: http://these/git/%22https:/image.com/%7B%7D/static/%22%7Burl%7D/%7Burl%7D?a=commitdiff_plain;h=e5a9ccaff12fbe97065f15a817ea1c6a64395297;p=lemmy.git Preview image type post. - Fixes #383 --- diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 7e60b2b0..0b4d0576 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -26,6 +26,7 @@ import { archiveUrl, mdToHtml, debounce, + isImage, } from '../utils'; import * as autosize from 'autosize'; import { i18n } from '../i18next'; @@ -193,6 +194,9 @@ export class PostForm extends Component { )} + {isImage(this.state.postForm.url) && ( + + )} {this.state.crossPosts.length > 0 && ( <>