Feat/nostr emoji tags - #144
Conversation
Parse NIP-30 emoji tags from Nostr events and attach Emoji models to AttributedString via addEmojiElement(). Add extractEmojis() internal helper and NOSTR_EMOJI_SHORTCODE regex for validation.
Add 7 test cases covering emoji tag parsing, duplicate shortcodes, malformed tags, and interaction with hashtag/quote references. Modify note() helper to accept optional tags parameter.
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoAdd NIP-30 emoji tag parsing to Nostr note mapping
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
21 rules 1.
|
- Replace AttributedString.plain() with stripQuotePreservingAttributes() to preserve EMOJI, HASH_TAG, and other attributed elements when stripping the quote reference from parent text on deferred resolution - Add length bounds (1-64) and count cap (64) to extractEmojis for defense against untrusted tag input - Add stripQuotePreservingAttributes helper to NostrMapper for testability
🤖 PR Review Auto-CheckLast checked: 2026-07-27 05:29 UTC No new review comments since the last check. What was doneSummaryFixedIssue 1 — Emoji dropped on updates (
Issue 2 — Unbounded emoji shortcode work (
Tests added
Skipped
|
No description provided.