amark on dev
if wifi off don't crash due to … axe doc music dht :) (compare)
const post = {
title: 'First post',
text: 'Hello world!'
}
gun
.user()
.get('posts')
.set(post)
.once(function() {
gun.get('posts').set(this)
})
})
In this case, if I get posts like this:
gun.get('posts').on(function(data, publicKey) {
console.log('post', data)
})
They are already write-protected for other users.
username: *************
instead of username: %2aDgho!@nb
I replied to a question on stackoverflow
https://stackoverflow.com/questions/56044288/private-wite-and-public-read-in-gundb/57971655#57971655
And I ask you for help:
How to make a third user to add a comment to a post, only the author of the post and the author of this comment could edit / delete it?
Or, at least, how to make a comment which is in the third user graph, was associated with the post, located in the first user's graph?
SEA
:) API returns auto-verified data, but doesn't decrypt (actually amark/gun#783 messes up API reply of encrypted data), that will need to be done manually or with some future convenience method I'm hoping I can get others to support/maintain.