mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 01:11:25 +00:00
smol changes
This commit is contained in:
parent
b005c94a1c
commit
89f2aa6699
@ -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}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user