diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 11:17:09 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 11:17:13 +0000 |
| commit | a08dbede23af9c978acec3b3d864e48f7999741b (patch) | |
| tree | 0531398c36bfcb75543d572870ca5f065c12ae3d /src/layout.js | |
| parent | cleanup index.js (diff) | |
| download | fedidag-a08dbede23af9c978acec3b3d864e48f7999741b.tar.gz fedidag-a08dbede23af9c978acec3b3d864e48f7999741b.zip | |
use jsonld framing, add discussion title
Diffstat (limited to 'src/layout.js')
| -rw-r--r-- | src/layout.js | 4 |
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; }; |
