From 19d0fbb8fcd5006ad04545d708f800adc0547ae3 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 18 Aug 2024 21:38:20 +0300 Subject: [PATCH] feat(task): expose remaining relevant event properties --- src/task.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/task.rs b/src/task.rs index 2091dbc..a853c29 100644 --- a/src/task.rs +++ b/src/task.rs @@ -10,7 +10,7 @@ use itertools::Itertools; use log::{debug, error, info, trace, warn}; use nostr_sdk::{Event, EventId, Kind, Tag, TagStandard, Timestamp}; -use crate::helpers::some_non_empty; +use crate::helpers::{local_datetimestamp, some_non_empty}; use crate::kinds::{is_hashtag, PROCEDURE_KIND}; pub static MARKER_PARENT: &str = "parent"; @@ -160,6 +160,8 @@ impl Task { "{:?}", self.descriptions().collect_vec() )), + "pubkey" => Some(self.event.pubkey.to_string()), + "created" => Some(local_datetimestamp(&self.event.created_at)), _ => { warn!("Unknown task property {}", property); None