smol changes

This commit is contained in:
smolgrrr 2024-09-07 09:52:17 +10:00
parent b005c94a1c
commit 89f2aa6699
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ const RenderMedia = ({ files }: { files: string[] }) => {
); );
} }
if (file && (file.endsWith(".mp4") || file.endsWith(".webm"))) { if (file && (file.endsWith(".mp4") || file.endsWith(".webm")) && mediaCheckResult && mediaCheckResult.nsfwLabel === 'neutral') {
return ( return (
<video <video
key={index} key={index}

View File

@ -106,7 +106,7 @@ const Thread = () => {
</div> </div>
<div className="grid grid-cols-1 max-w-xl mx-auto gap-1"> <div className="grid grid-cols-1 max-w-xl mx-auto gap-1">
{replyEvents.slice(0, visibleReplyEvents) {replyEvents.slice(0, visibleReplyEvents)
.filter((event) => (showAllReplies || event.totalWork > 1) && event.postEvent.tags.some(tag => tag[0] === 'e' && tag[1] === OPEvent.id)) .filter((event) => (showAllReplies || Math.log2(event.totalWork) > 10) && event.postEvent.tags.some(tag => tag[0] === 'e' && tag[1] === OPEvent.id))
.map((event) => ( .map((event) => (
<div className={`w-11/12 ${event.postEvent.tags.find(tag => tag[0] === 'e' && tag[1] !== OPEvent.id) ? 'ml-auto' : 'mr-auto'}`}> <div className={`w-11/12 ${event.postEvent.tags.find(tag => tag[0] === 'e' && tag[1] !== OPEvent.id) ? 'ml-auto' : 'mr-auto'}`}>
<PostCard <PostCard