From c643e5a6a4d2e97d8986245898b84f32e91c70c1 Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 15 Sep 2019 21:37:33 -0300 Subject: Manejo de post eliminados --- src/Post.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/Post.js') diff --git a/src/Post.js b/src/Post.js index e175f91..3ff524b 100644 --- a/src/Post.js +++ b/src/Post.js @@ -15,7 +15,20 @@ const ImageModal = ({ href, trigger }) => ( const Post = ({ index, post, locked, dir, threadId }) => { if (post.IS_DELETED > 0) { - return null; + return ( + + + + #{index + 1} + +
+
+ + Eliminado por el {post.IS_DELETED === 1 ? "usuario." : "Staff."} + +
+
+ ); } console.log(post); const filesize = require('filesize'); @@ -33,7 +46,7 @@ const Post = ({ index, post, locked, dir, threadId }) => { #{index + 1} {post.name}{post.tripcode}
-
{user_id}
+
{user_id}
{post.file !== "" ? -- cgit v1.2.1-18-gbd029