aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/users.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 653940c0..19ddc7b3 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -23,6 +23,7 @@ import { emit } from "$lib/sockets";
import register from "$lib/register";
import { requirePin } from "$lib/utils";
import { coinos, q } from "$lib/nostr";
+import got from "got";
const pick = (O, ...K) => K.reduce((o, k) => ((o[k] = O[k]), o), {});
@@ -682,7 +683,7 @@ app.get("/:pubkey/followers", async (req, res) => {
try {
let { pubkey } = req.params;
- let pubkeys = await got(`https://coinos.io/nostr/followers?pubkey=${pubkey}`);
+ let pubkeys = await got(`https://coinos.io/nostr/followers?pubkey=${pubkey}`).json();
let followers = [];