Fixing reply overwrite issue

This commit is contained in:
Chris Troutner
2026-06-03 13:57:43 -07:00
parent 32e8e1f35f
commit e232a47ff9
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ Each store is a separate LevelDB with JSON values. Keys are txids, addresses, or
| `status` | `status` | `syncedBlockHeight`, `chainBlockHeight`, `startBlockHeight` |
| `posts` | txid | Author address, text, timestamp |
| `postParents` | child txid | Parent txid (reply) |
| `postChildren` | parent txid | Reverse index for replies |
| `postChildren` | `parentTxid:childTxid` | One reply link per parentchild pair |
| `likes` | like txid | Post txid, liker, optional tip |
| `names` | address | Display name + provenance txid |
| `profiles` | address | Profile text |
+2 -2
View File
@@ -71,7 +71,7 @@ All routes are under `/level` with a consistent CRUD pattern generated from `ENT
|-------|---------|-----------|-------------|
| `post` | `txid` | `postData` | transaction id |
| `postparent` | `txid` | `parentData` | child txid |
| `postchild` | `txid` | `childData` | parent txid |
| `postchild` | `key` | `childData` | `parentTxid:childTxid` |
| `like` | `txid` | `likeData` | like txid |
| `name` | `addr` | `nameData` | cash address |
| `profile` | `addr` | `profileData` | cash address |
@@ -187,7 +187,7 @@ Common fields on indexed documents:
| profilePic | addr | `url`, `txid`, `seen`, `addr`, `blockHeight` |
| like | txid | `addr`, `postTxid`, `seen`, `tip`, `blockHeight` |
| follow | composite key | `followerAddr`, `followeePkHash`, `unfollow`, `txid`, `seen`, `blockHeight` |
| postParent / postChild | txid | `parentTxid`, `childTxid`, `blockHeight` |
| postParent / postChild | txid / `parentTxid:childTxid` | `parentTxid`, `childTxid`, `blockHeight` |
| room | composite key | `room`, `txid`, `seen`, `type`, `blockHeight` (+ `addr` for follows) |
| processError | txid | `error`, `ts`, `blockHeight` |