nip29: support setting "restricted" and "hidden" via edit-metadata.

This commit is contained in:
fiatjaf
2025-12-12 14:12:03 -03:00
parent 34a509c9d7
commit 7aa5da3897

View File

@@ -100,6 +100,14 @@ var moderationActionFactories = map[nostr.Kind]func(nostr.Event) (Action, error)
edit.ClosedValue = &y
ok = true
}
if evt.Tags.Has("restricted") {
edit.RestrictedValue = &y
ok = true
}
if evt.Tags.Has("hidden") {
edit.HiddenValue = &y
ok = true
}
if ok {
return edit, nil