Limited post send size and post syncing is working for small posts 😮

This commit is contained in:
2025-05-19 02:09:50 -07:00
parent d86519cf6b
commit 9df18d7f35
4 changed files with 40 additions and 4 deletions

View File

@@ -642,8 +642,12 @@ class App {
// return posts;
// return postIDs;
});
this.peerManager.registerRPC('sendPostForUser', async (requestingPeerID, userID, post) => {
console.log.apply(null, log(`[app] sendPostForUser to [${logID(requestingPeerID)}] `, userID, post));
this.peerManager.registerRPC('sendPostForUser', async (userID, post) => {
console.log.apply(null, log(`[app] sendPostForUser`, userID, post));
await this.sync.writePostForUser(userID, post);
if (userID === this.userID) {
await this.render();
}
});
await this.peerManager.connect();
console.log.apply(null, log("*************** after peerManager.connect"));