fix(ui): 列表不再展示含隐藏内容、密码可见等徽章
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { ArrowLeft } from "lucide-react";
|
|||||||
import type { PostListItem } from "@/lib/api";
|
import type { PostListItem } from "@/lib/api";
|
||||||
import { formatRelative } from "@/lib/format";
|
import { formatRelative } from "@/lib/format";
|
||||||
import { getPublicSettingsCached } from "@/lib/serverData";
|
import { getPublicSettingsCached } from "@/lib/serverData";
|
||||||
import { normalizePostType, postTypeLabel, contentAccessLabel, typeStatusLabel, typeStatusClass } from "@/lib/postMeta";
|
import { normalizePostType, postTypeLabel, typeStatusLabel, typeStatusClass } from "@/lib/postMeta";
|
||||||
import LikeButton from "./LikeButton";
|
import LikeButton from "./LikeButton";
|
||||||
import Avatar from "./Avatar";
|
import Avatar from "./Avatar";
|
||||||
import { IconComment, IconEye } from "./Icons";
|
import { IconComment, IconEye } from "./Icons";
|
||||||
@@ -87,9 +87,6 @@ export default async function PostRow({
|
|||||||
{statusBadge && statusClass && (
|
{statusBadge && statusClass && (
|
||||||
<span className={`${statusClass} shrink-0`}>{statusBadge}</span>
|
<span className={`${statusClass} shrink-0`}>{statusBadge}</span>
|
||||||
)}
|
)}
|
||||||
{post.content_access && post.content_access !== "public" && (
|
|
||||||
<span className="badge-access shrink-0">{contentAccessLabel(post.content_access)}</span>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user