update copy button

This commit is contained in:
2026-08-27 20:12:09 +07:00
parent 1a8f96b3ba
commit b73dccd0d3
5 changed files with 204 additions and 25 deletions
+3
View File
@@ -4,6 +4,8 @@ use nostr::prelude::*;
/// Parsed NIP-34 repository announcement (plain data, ready for the UI).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Announcement {
/// ID of the announcement event itself.
pub event_id: EventId,
/// Repository ID (`d` tag).
pub id: String,
/// Author of the announcement event.
@@ -211,6 +213,7 @@ impl Announcement {
}
Some(Self {
event_id: event.id,
owner: event.pubkey,
created_at: event.created_at,
id,