Skip to content

Commit

Permalink
Remove user name from edit
Browse files Browse the repository at this point in the history
  • Loading branch information
sora32127 committed Apr 29, 2024
1 parent 4132488 commit bd1e478
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/routes/_layout.archives.edit.$postId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
const postTitle = formData.get("postTitle")?.toString() || "";
const postContent = formData.get("postContent")?.toString() || "";
const tags = formData.getAll("tags") as string[];
const userName = formData.get("userName")?.toString() || "";
const session = await getSession(request.headers.get('Cookie'));
const userId = session.get('userId');

Expand Down Expand Up @@ -430,7 +429,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
data: {
postId,
postRevisionNumber: newRevisionNumber,
editorUserName: userName,
editorUserId: userId,
postTitleBeforeEdit: latestPost.postTitle,
postTitleAfterEdit: postTitle,
Expand Down

0 comments on commit bd1e478

Please sign in to comment.