aboutsummaryrefslogtreecommitdiffstats
path: root/src/layout.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-01-27 11:17:09 +0000
committers-ol <s-ol@users.noreply.github.com>2021-01-27 11:17:13 +0000
commita08dbede23af9c978acec3b3d864e48f7999741b (patch)
tree0531398c36bfcb75543d572870ca5f065c12ae3d /src/layout.js
parentcleanup index.js (diff)
downloadfedidag-a08dbede23af9c978acec3b3d864e48f7999741b.tar.gz
fedidag-a08dbede23af9c978acec3b3d864e48f7999741b.zip
use jsonld framing, add discussion title
Diffstat (limited to 'src/layout.js')
-rw-r--r--src/layout.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout.js b/src/layout.js
index 95237c5..788edca 100644
--- a/src/layout.js
+++ b/src/layout.js
@@ -10,8 +10,8 @@ export const addNode = (dot, node) => {
const id = node.data.id;
dot += ` "${id}" [fixedsize=true; width=${node.dom.offsetWidth / 72}; height=${node.dom.offsetHeight / 72}];\n`;
- for (const replyId of node.data.replies || [])
- dot += ` "${id}" -> "${replyId}";\n`;
+ for (const reply of node.data.replies)
+ dot += ` "${id}" -> "${reply.id}";\n`;
return dot;
};