Fix reaction events to not tag all e and p tags in the thread

Changelog-Fixed: Fix reaction events to not tag all e and p tags in the thread
This commit is contained in:
2024-06-05 18:40:22 -04:00
parent 2c84184dbd
commit 5ff352361c
4 changed files with 43 additions and 17 deletions

View File

@@ -280,6 +280,17 @@ extension NdbNote {
return kind == 1 || kind == 42 || kind == 30023
}
var is_non_parameterized_replaceable: Bool {
switch kind {
case 10000..<20000, 0, 3: return true
default: return false
}
}
var is_parameterized_replaceable: Bool {
(30000..<40000).contains(kind)
}
var is_quote_repost: NoteId? {
guard kind == 1, let quoted_note_id = referenced_quote_ids.first else {
return nil