upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-05-28 18:00:12 -0300
committerfiatjaf <fiatjaf@gmail.com>2024-02-23 20:51:46 -0300
commitd1f08d724c66efe9e16910935c64e5ac851eec8d (patch)
tree59e710f280aaf8adcd67e10827391f9a53fc593f
parent16407807de8af0e46357be41dc059b66e70e6f6d (diff)
add and remove permissions actions.
-rw-r--r--29.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/29.md b/29.md
index 95812a0..6fd7093 100644
--- a/29.md
+++ b/29.md
@@ -62,6 +62,8 @@ The list of capabilities, as defined by this NIP, for now, is the following:
62- `edit-metadata` 62- `edit-metadata`
63- `delete-message` 63- `delete-message`
64- `ban-user` 64- `ban-user`
65- `add-permission`
66- `remove-permission`
65 67
66```js 68```js
67{ 69{
@@ -90,6 +92,8 @@ An event sent from a client to the relay in order to accomplish a moderation act
90 ["action", "ban-user", "<pubkey-to-ban>"], 92 ["action", "ban-user", "<pubkey-to-ban>"],
91 ["action", "delete-message", "<event-id-to-delete>"], 93 ["action", "delete-message", "<event-id-to-delete>"],
92 ["action", "edit-metadata", "<field-name>", "<field-value>"], 94 ["action", "edit-metadata", "<field-name>", "<field-value>"],
95 ["action", "add-permission", "<pubkey>", "<permission>"],
96 ["action", "remove-permission", "<pubkey>", "<permission>"],
93 ] 97 ]
94} 98}
95``` 99```