diff options
| author | Adam Soltys <[email protected]> | 2024-12-31 16:52:14 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-31 16:52:14 -0800 |
| commit | e2db9a0e0fad4cb107e1bb4fee32b0618f6bae26 (patch) | |
| tree | 460c4efb7fd8f25ada1478114107f7c9b339cda9 /routes | |
| parent | a323fa03caf05332cfd0f72539532b9a2ed86221 (diff) | |
| download | coinos-server-e2db9a0e0fad4cb107e1bb4fee32b0618f6bae26.tar.gz coinos-server-e2db9a0e0fad4cb107e1bb4fee32b0618f6bae26.zip | |
picture not profile
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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); |
