Skip to content

01a052b6 - Put #bitcoin and #21gifts in kind:1 content - #72

Merged
TaprootFreak merged 3 commits into
developfrom
01a052b6-kind1-hashtags
Aug 30, 2026
Merged

01a052b6 - Put #bitcoin and #21gifts in kind:1 content#72
TaprootFreak merged 3 commits into
developfrom
01a052b6-kind1-hashtags

Conversation

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
Damus shows hashtags only when they appear in the note text, not from hidden t tags. This appends #bitcoin and #21gifts to every kind:1 content while leaving the forum row as the member wrote it. Unpaid notes that still lack those words are re-signed; notes with zaps keep their event id.

DE:
Damus zeigt Hashtags nur im Notiztext, nicht aus versteckten t-Tags. Dieser PR hängt #bitcoin und #21gifts an jeden Kind-1-Content, der Forum-Text in der Datenbank bleibt unverändert. Unbezahlte Notes ohne diese Wörter werden neu signiert; Notes mit Zaps behalten ihre Event-ID.

Details

Live Damus note ohne foto funktioniert es had t=21gifts / t=bitcoin and r=https://21.gifts, but content was only the forum sentence. Damus (see damus-io/damus#2862) does not render hidden hashtags.

buildKind1Event now runs kind1ContentWithHashtags after the optional photo URL / NIP-92 imeta. Frozen tags stay frozen (no e/p/q). The worker resets unpaid signed rows whose stored content lacks either hashtag (listSignedMissingHashtags + resetSignedEvent), then signs again. Zapped rows are excluded so zap receipts still resolve.

This reverses the PR #51 choice not to copy the hashtags into content. The in-app thread still shows row.text only.

@TaprootFreakAI
TaprootFreakAI force-pushed the 01a052b6-kind1-hashtags branch 2 times, most recently from 6e2090d to 291a1fd Compare August 30, 2026 13:48
Damus renders hashtags from note text, not from hidden t tags.
Append the same discovery tags to kind:1 content and re-sign unpaid
notes that still lack them. Forum message text is unchanged.
Photo notes without bytes still get #bitcoin #21gifts in content.
Zap ingest fixtures must already include those tags so re-sign does
not replace the event id the receipt points at.
@TaprootFreakAI
TaprootFreakAI force-pushed the 01a052b6-kind1-hashtags branch from 291a1fd to 38e26e3 Compare August 30, 2026 13:54
@TaprootFreakAI

Copy link
Copy Markdown
Collaborator Author

EN:
Ready after 2 review passes.
Forum notes now put #bitcoin and #21gifts in kind:1 text so Damus shows them.

DE:
Bereit nach 2 Review-Durchläufen.
Forum-Notes schreiben #bitcoin und #21gifts in den Kind-1-Text, damit Damus sie anzeigt.

Details

CI on head 115278dd is green (typecheck, lint, handbook, e2e-check, 100% coverage, build, e2e). The branch is MERGEABLE onto develop. No open review threads or PR comments.

Unpaid notes missing those hashtags are re-signed; notes with zaps keep their event id. Forum text is unchanged. Rebased onto the image-extension and photo-publish work already on develop.

A second-vendor review is deferred to a follow-up PR, per operator.

@TaprootFreakAI
TaprootFreakAI marked this pull request as ready for review August 30, 2026 13:56
@TaprootFreak
TaprootFreak merged commit caf1dd2 into develop Aug 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants