Add LogToStdout config option, improve tag decoding, and fix ID tracking in event handling

This commit is contained in:
2025-09-10 15:16:33 +01:00
parent 5eb192f208
commit fe3893addf
4 changed files with 21 additions and 9 deletions

View File

@@ -87,10 +87,16 @@ func (l *Listener) HandleDelete(env *eventenvelope.Submission) {
// if e tags are found, delete them if the author is signer, or one of
// the owners is signer
if utils.FastEqual(t.Key(), []byte("e")) {
var dst []byte
if _, err = hex.DecBytes(dst, t.Value()); chk.E(err) {
val := t.Value()
if len(val) == 0 {
continue
}
var dst []byte
if b, e := hex.Dec(string(val)); chk.E(e) {
continue
} else {
dst = b
}
f := &filter.F{
Ids: tag.NewFromBytesSlice(dst),
}