aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-02-12 12:56:39 +0000
committers-ol <s-ol@users.noreply.github.com>2021-02-12 12:56:39 +0000
commitcc9fd588f6678ad13a06a7c60f63fb646ebfc758 (patch)
tree0c58a10c736baf5cb554037059705c8ac0a933bc
parentbasic media attachments (diff)
downloadfedidag-cc9fd588f6678ad13a06a7c60f63fb646ebfc758.tar.gz
fedidag-cc9fd588f6678ad13a06a7c60f63fb646ebfc758.zip
use canonical URL for graph root
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index b32054e..38dc8cc 100644
--- a/src/index.js
+++ b/src/index.js
@@ -95,7 +95,7 @@ class GraphContainer extends Component {
item.attributedTo = await this.loadUser(item.attributedTo);
item.replies = await this.loadCollection(item.replies[0].id, items);
- items[id] = item;
+ items[item.id] = item;
return item;
}