aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-06 23:02:01 -0800
committerAdam Soltys <[email protected]>2023-01-06 23:02:01 -0800
commit018732b4544fd95b7f1830db8b43dce26ebec1aa (patch)
tree1829685a50906b7f21434e64bfad92d876466697 /routes/users.js
parent6df7873c907024285504f6ad684ecc1d1f9b7141 (diff)
downloadcoinos-server-018732b4544fd95b7f1830db8b43dce26ebec1aa.tar.gz
coinos-server-018732b4544fd95b7f1830db8b43dce26ebec1aa.zip
event endpoint, send uuid with contacts
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/routes/users.js b/routes/users.js
index 329210c8..4e6b8a63 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -619,7 +619,7 @@ app.get("/contacts", auth, async function(req, res) {
with_id: { [Sequelize.Op.ne]: null }
},
include: {
- attributes: ["username", "profile"],
+ attributes: ["username", "profile", "uuid"],
model: db.User,
as: "with"
},
@@ -666,9 +666,7 @@ app.get("/:pubkey/follows", async (req, res) => {
kinds: [3],
authors: [pubkey]
},
- 60000,
- 3600,
- 60000
+ { timeout: 60000, eager: 60000 }
).catch(nada);
let tags = JSON.parse(await redis.get(`${pubkey}:follows`)) || [];
@@ -722,9 +720,7 @@ app.get("/:pubkey/followers", async (req, res) => {
q(
`${pubkey}:followers`,
{ kinds: [3], "#p": [pubkey] },
- 60000,
- 3600,
- 60000
+ { timeout: 60000, eager: 60000 }
).catch(nada);
for (let pubkey of pubkeys) {