Commit 39be5d8b authored by ChanHaeng Lee's avatar ChanHaeng Lee
Browse files

Fix codes

parent c6b6f2b1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
import { Note, type RequestContext } from "@fedify/fedify";
import type { Post, User } from "./types";
import { postStore } from "./store";

export const getUser = async (
  ctx: RequestContext<unknown>,
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
      <a href="https://svelte.dev/">
        <img
          src="/svelte-horizontal.svg"
          alt="Next.js"
          alt="Svelte"
          class="inline-block w-24"
        />
      </a>
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
            </a><a href="https://svelte.dev/">
              <img
                src="/svelte-horizontal.svg"
                alt="Next.js"
                alt="Svelte"
                class="inline-block h-5"
              />
            </a> integration.
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ const post: Action = async (event) => {
	const content = data.get("content") as string;
	const identifier = data.get("identifier") as string;

	if (typeof content !== "string" && typeof identifier !== "string") {
		error(400, "Title and content are required");
	if (typeof content !== "string" || typeof identifier !== "string") {
		error(400, "Content and identifier are required");
	}
	const ctx = federation.createContext(event.request, undefined);
	const id = crypto.randomUUID();