This commit is contained in:
2026-03-20 21:17:26 +01:00
parent 1a62fcb81d
commit 29c3ff8572
229 changed files with 13147 additions and 2577 deletions

View File

@@ -1,5 +1,6 @@
import React, { useState, useEffect, useRef } from 'react'
import axios from 'axios'
import LevelBadge from '../xp/LevelBadge'
function formatRelative(isoString) {
const diff = Date.now() - new Date(isoString).getTime()
@@ -133,6 +134,7 @@ export default function PostComments({ postId, isLoggedIn, isOwn = false, initia
>
{c.author.name || `@${c.author.username}`}
</a>
<LevelBadge level={c.author.level} rank={c.author.rank} compact />
<span className="text-[10px] text-slate-600">{formatRelative(c.created_at)}</span>
{c.is_highlighted && (
<span className="text-[10px] text-sky-400 font-medium flex items-center gap-1">