import React from "react"; import { Image, Icon, Modal, Comment, Flag, Embed, Form, Button } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; import { avatars } from "./Quotes"; import ReplyForm from "./ReplyForm"; const ImageModal = ({ href, trigger }) => ( ); const ReportModal = ({ trigger, threadId, postId, dir }) => ( Reportar

Para pedir que el post #{postId} sea eliminado, indica una razón y presiona el botón Reportar.

Normalmente eliminamos los mensajes que son considerados spam o flood.
Si deseas pedir la prohibición de acceso a algún usuario persistente, te recomendamos hacerlo en la sección /bai/.

); const QuickReplyModal = ({ trigger, currentBoard, id, locked, replyIndex }) => ( Respuesta rápida. ); const Post = ({ index, post, locked, threadId, currentBoard, nightMode }) => { const filesize = require("filesize"); // Manejo de posts eliminados if (post.IS_DELETED > 0) { return ( #{currentBoard.board_type === 0 ? post.id : index + 1}
Eliminado por el {post.IS_DELETED === 1 ? "usuario." : "Staff."}
); } // Obtener un avatar aleatorio basado en ID let user_id = post.timestamp_formatted.split(" ID:")[1]; const seedrandom = require("seedrandom"); const rng = seedrandom(threadId + index); const idRng = seedrandom(user_id); const idColor = "rgb(" + Math.round(idRng() * 255) + ", " + Math.round(idRng() * 200) + ", " + Math.round(idRng() * 200) + ")"; let rndAvatar, hue; if (user_id !== "") { let i = Math.round(idRng() * avatars.length - 1); rndAvatar = avatars[i]; hue = Math.round(idRng() * 360); } else { let i = Math.round(rng() * avatars.length - 1); rndAvatar = avatars[i]; hue = Math.round(rng() * 360); } // Obetener bandera del pais (para /world) let flag; if (currentBoard.dir === "world") { flag = post.name.match("[A-Z][A-Z]"); if (flag !== null) { flag = flag[0].toLowerCase(); } else { flag = "kp"; // heh } } // Fix: imagenes en dominio incorrecto post.message = post.message.replace( ' #{currentBoard.board_type === 0 ? post.id : index + 1}{" "} {currentBoard.dir === "world" ? post.name.split("")[0] : post.name}{" "} {currentBoard.dir === "world" ? : null} {post.tripcode}
{user_id === "CAP_USER*" ? ( "Usuario verificado" ) : ( {user_id} )}
{post.file !== "" ? (
} /> {post.file} {" "} {post.image_width}x{post.image_height}{" "} {filesize(post.file_size, { bits: true })}
) : null} {youtubeVideos !== null ? youtubeVideos.map((url, i) => { let id = url.split("?v=")[1]; return (
); }) : null}
{locked ? null : ( Responder} currentBoard={currentBoard} id={threadId} locked={locked} replyIndex={currentBoard.board_type === 0 ? post.id : index + 1} /> )} Reportar} postId={post.id} /> ); }; export default Post;