Global Feed Post Login
Replying to Avatar Sirius

It's very simple. Private block:

{

kind: 16462,

content: nip04.encrypt(myPriv, myPub, JSON.stringify(privateBlockedUsersArray))

}

Public block:

{

kind: 16463,

content: JSON.stringify(publicBlockedUsersArray)

}

I picked the kind by random from the replaceable events range.

Any improvements are welcome. One thing that comes to mind is recording the reason or expiry date for block. If such additional attributes are needed, object might be better than array.

Avatar
monlovesmango 3y ago

also how do you query for public blocks if the user list is in the content and not the tags..?

Reply to this note

Please Login to reply.

Discussion

No replies yet.