feat: update dependencies to k-ap v0.1.7 and add profileHref utility for user links

This commit is contained in:
2026-05-27 23:37:22 +02:00
parent 6f65742284
commit f6893b19dc
18 changed files with 254 additions and 224 deletions

View File

@@ -1,3 +1,4 @@
import { cache } from "react";
import { z } from "zod";
export const UserSchema = z.object({
@@ -278,13 +279,14 @@ export const markAllNotificationsRead = (token: string) =>
token
);
export const lookupRemoteActor = (handle: string, token: string | null) =>
export const lookupRemoteActor = cache((handle: string, token: string | null) =>
apiFetch(
`/users/lookup?handle=${encodeURIComponent(handle)}`,
{ next: { tags: [`remote-actor:${handle}`] } },
RemoteActorSchema,
token
);
)
);
export const getRemoteActorPosts = (
handle: string,