diff --git a/src/components/nostr/kinds/SpellRenderer.tsx b/src/components/nostr/kinds/SpellRenderer.tsx index d3a5f71..8dabac7 100644 --- a/src/components/nostr/kinds/SpellRenderer.tsx +++ b/src/components/nostr/kinds/SpellRenderer.tsx @@ -220,6 +220,20 @@ export function SpellDetailRenderer({ event }: BaseEventProps) { try { const spell = decodeSpell(event as SpellEvent); + // Create a display filter that includes since/until even in relative format + const displayFilter = { ...spell.filter }; + + // Extract raw since/until values from tags + const sinceTag = event.tags.find((t) => t[0] === "since")?.[1]; + const untilTag = event.tags.find((t) => t[0] === "until")?.[1]; + + if (sinceTag && !displayFilter.since) { + displayFilter.since = sinceTag as any; // Show relative format like "7d" + } + if (untilTag && !displayFilter.until) { + displayFilter.until = untilTag as any; // Show relative format like "now" + } + return (