Update + Delete articles
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import BlogArticle from "@/components/article";
|
||||
import getMe from "@/lib/getMe";
|
||||
import request from "@/lib/request";
|
||||
import { Blog } from "@/types/types";
|
||||
import { notFound } from "next/navigation";
|
||||
@@ -20,5 +21,7 @@ export default async function HistoryDetails({
|
||||
return notFound();
|
||||
}
|
||||
|
||||
return <BlogArticle blog={blog.data} />;
|
||||
const me = await getMe();
|
||||
|
||||
return <BlogArticle blog={blog.data} user={me?.data} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user