加入作者页抖音直链

This commit is contained in:
2026-10-20 01:03:56 +08:00
parent d3896522ec
commit 990e1b1804
+10
View File
@@ -5,6 +5,7 @@ import BackButton from "@/app/components/BackButton";
import { FeedItem } from "@/app/types/feed"; import { FeedItem } from "@/app/types/feed";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import Image from "next/image"; import Image from "next/image";
import { ExternalLink } from "lucide-react";
export default async function AuthorPage({ export default async function AuthorPage({
params, params,
@@ -106,6 +107,15 @@ export default async function AuthorPage({
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1"> <p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
抖音号:{author.unique_id || author.short_id || "未知"} 抖音号:{author.unique_id || author.short_id || "未知"}
</p> </p>
<a
href={`https://www.douyin.com/user/${encodeURIComponent(secUid)}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 mt-3 text-sm text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white underline underline-offset-4"
>
打开抖音主页
<ExternalLink size={14} aria-hidden="true" />
</a>
</div> </div>
{author.signature && ( {author.signature && (