From e2db9a0e0fad4cb107e1bb4fee32b0618f6bae26 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 31 Dec 2024 16:52:14 -0800 Subject: picture not profile --- routes/users.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'routes') diff --git a/routes/users.ts b/routes/users.ts index d2992d1b..7635af20 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -127,7 +127,6 @@ export default { "memoPrompt", "npub", "picture", - "profile", "prompt", "pubkey", "username", @@ -151,7 +150,6 @@ export default { if (!body.user) fail("no user object provided"); let { user } = body; const fields = [ - "profile", "cipher", "pubkey", "password", @@ -269,7 +267,7 @@ export default { "nip5", "notify", "nsec", - "profile", + "picture", "prompt", "pubkey", "push", @@ -506,7 +504,7 @@ export default { if (~i) contacts.splice(i, 1); let u = await g(`user:${ref}`); if (typeof u === "string") u = await g(`user:${ref}`); - if (u) contacts.unshift(pick(u, ["id", "profile", "username"])); + if (u) contacts.unshift(pick(u, ["id", "picture", "username"])); } await s(`${id}:contacts`, contacts); -- cgit v1.2.3