diff options
author | Renard | 2019-09-15 21:37:33 -0300 |
---|---|---|
committer | Renard | 2019-09-15 21:37:33 -0300 |
commit | c643e5a6a4d2e97d8986245898b84f32e91c70c1 (patch) | |
tree | 9215bb4572cd56a0f885151af75d306683a75ba5 /src/Post.js | |
parent | 9ac9b9805779a504c9904bb6e81b579cfdb79c28 (diff) | |
download | bai-client-c643e5a6a4d2e97d8986245898b84f32e91c70c1.tar.gz bai-client-c643e5a6a4d2e97d8986245898b84f32e91c70c1.tar.xz bai-client-c643e5a6a4d2e97d8986245898b84f32e91c70c1.zip |
Manejo de post eliminados
Diffstat (limited to 'src/Post.js')
-rw-r--r-- | src/Post.js | 17 |
1 files changed, 15 insertions, 2 deletions
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 ( + <Comment> + <Comment.Avatar src={`https://bienvenidoainternet.org/static/css/img/picnicbdy.gif`} /> + <Comment.Content> + <Comment.Author as='a'>#{index + 1}</Comment.Author> + <Comment.Metadata> + <div><Moment fromNow unix locale="es" date={post.timestamp} /></div> + </Comment.Metadata> + <Comment.Text> + <span className="deleted">Eliminado por el {post.IS_DELETED === 1 ? "usuario." : "Staff."}</span> + </Comment.Text> + </Comment.Content> + </Comment> + ); } console.log(post); const filesize = require('filesize'); @@ -33,7 +46,7 @@ const Post = ({ index, post, locked, dir, threadId }) => { <Comment.Author as='a'>#{index + 1} <span className={post.email === "sage" ? "username sage" : "username"}>{post.name}</span><span className="tripcode">{post.tripcode}</span></Comment.Author> <Comment.Metadata> <div><Moment fromNow unix locale="es" date={post.timestamp} /></div> - <div><Icon name="star" />{user_id}</div> + <div><Icon name="star" color={user_id === "CAP_USER*" ? "yellow" : "grey"} />{user_id}</div> </Comment.Metadata> <Comment.Text> {post.file !== "" ? |