From 018732b4544fd95b7f1830db8b43dce26ebec1aa Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Jan 2023 23:02:01 -0800 Subject: event endpoint, send uuid with contacts --- routes/users.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'routes/users.js') 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) { -- cgit v1.2.3