mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(db): expose shared d-tag semantics
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
This commit is contained in:
parent
3cf000f865
commit
a90e712c4b
@@ -163,7 +163,7 @@ const HUDDLE_LINK_CANDIDATE_LIMIT: i64 = 32;
|
||||
/// For NIP-33 parameterized replaceable events (kind 30000–39999): returns the first
|
||||
/// `d` tag's value, or `""` if no `d` tag is present (per NIP-33 spec).
|
||||
/// For all other events: returns `None` (column stays NULL).
|
||||
pub(crate) fn extract_d_tag(event: &Event) -> Option<String> {
|
||||
pub fn extract_d_tag(event: &Event) -> Option<String> {
|
||||
let kind_u32 = event.kind.as_u16() as u32;
|
||||
if !is_parameterized_replaceable(kind_u32) {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user