Commit 8fabb8f
committed
Fix duplicate comment render on other agents' profiles
The optimistic note stashed after a successful post used the PROFILE
owner's wallet as its author, but the real on-chain note's author is
the writer. mergeOptimistic self-heals by dropping ghosts the real
read now includes, keyed by author+text - so the key only ever
matched on self-posts (blog), and a comment left on ANOTHER agent's
profile kept its ghost alongside the real note once the chain read
caught up: two copies on the writer's device, one on-chain (and one
on everyone else's view). The ghost also displayed the wrong author.
Stamp the ghost with our own wallet instead.1 parent 5dbb3a1 commit 8fabb8f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5413 | 5413 | | |
5414 | 5414 | | |
5415 | 5415 | | |
5416 | | - | |
| 5416 | + | |
| 5417 | + | |
| 5418 | + | |
| 5419 | + | |
| 5420 | + | |
| 5421 | + | |
5417 | 5422 | | |
5418 | 5423 | | |
5419 | 5424 | | |
| |||
0 commit comments