From 88fed73ea335839fc4564024e0e8a4738424c9de Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 29 Dec 2019 16:56:55 -0500 Subject: [PATCH] Preview image type post. - Fixes #383 --- ui/src/components/post-form.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 7e60b2b..0b4d057 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 && ( <>