aboutsummaryrefslogtreecommitdiffstats
path: root/routes/nostr.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-16 19:40:47 -0800
committerAdam Soltys <[email protected]>2023-02-16 19:40:48 -0800
commit38aa5fa9952bfce66e37fc0c92216bd477aba574 (patch)
tree9aa7e88a0215ae7e5ea2aa366a0b9b9135483c98 /routes/nostr.js
parent03200c4299af45f2fb8693de76672eaecf43dd67 (diff)
downloadcoinos-server-38aa5fa9952bfce66e37fc0c92216bd477aba574.tar.gz
coinos-server-38aa5fa9952bfce66e37fc0c92216bd477aba574.zip
messages fix
Diffstat (limited to 'routes/nostr.js')
-rw-r--r--routes/nostr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/nostr.js b/routes/nostr.js
index ad9f55aa..47ceaa25 100644
--- a/routes/nostr.js
+++ b/routes/nostr.js
@@ -70,7 +70,7 @@ export default {
messages = await Promise.all(
messages.map(async id => {
let m = await g(`ev:${id}`);
- let k = m.pubkey === pubkey ? m.tags[0].p : m.pubkey;
+ let k = m.pubkey === pubkey ? m.tags[0][1] : m.pubkey;
let uid = await g(`user:${k}`);
m.user = await g(`user:${uid}`);
return m;