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

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