mirror of
https://github.com/fiatjaf/nak.git
synced 2026-07-22 07:48:27 +00:00
filter: merge kind from the base event too, otherwise kind filters match against 0.
This commit is contained in:
@@ -86,6 +86,9 @@ example:
|
|||||||
if evt.Sig == [64]byte{} {
|
if evt.Sig == [64]byte{} {
|
||||||
evt.Sig = baseEvent.Sig
|
evt.Sig = baseEvent.Sig
|
||||||
}
|
}
|
||||||
|
if evt.Kind == 0 {
|
||||||
|
evt.Kind = baseEvent.Kind
|
||||||
|
}
|
||||||
if evt.Content == "" {
|
if evt.Content == "" {
|
||||||
evt.Content = baseEvent.Content
|
evt.Content = baseEvent.Content
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user