nip29: support setting "restricted" and "hidden" via edit-metadata.
This commit is contained in:
@@ -100,6 +100,14 @@ var moderationActionFactories = map[nostr.Kind]func(nostr.Event) (Action, error)
|
|||||||
edit.ClosedValue = &y
|
edit.ClosedValue = &y
|
||||||
ok = true
|
ok = true
|
||||||
}
|
}
|
||||||
|
if evt.Tags.Has("restricted") {
|
||||||
|
edit.RestrictedValue = &y
|
||||||
|
ok = true
|
||||||
|
}
|
||||||
|
if evt.Tags.Has("hidden") {
|
||||||
|
edit.HiddenValue = &y
|
||||||
|
ok = true
|
||||||
|
}
|
||||||
|
|
||||||
if ok {
|
if ok {
|
||||||
return edit, nil
|
return edit, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user