Skip to content

Commit

Permalink
nostrs: Add marker to reply event
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Mar 1, 2023
1 parent 515c1b2 commit 22afafa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nostrs/src/handler/text_note/create.rs
@@ -1,4 +1,4 @@
use nostr_sdk::prelude::{Tag, ToBech32};
use nostr_sdk::prelude::{Marker, Tag, ToBech32};

use crate::{client::new_client, event_id::event_id_from_hex_or_bech32};

Expand All @@ -7,7 +7,7 @@ pub async fn handle(content: String, reply_to: Option<String>) -> anyhow::Result
let mut options = vec![];
if let Some(event_id) = reply_to {
let event_id = event_id_from_hex_or_bech32(event_id.as_str())?;
options.push(Tag::Event(event_id, None, None));
options.push(Tag::Event(event_id, None, Some(Marker::Reply)));
}
let note_id = client
.publish_text_note(content, &options)
Expand Down

0 comments on commit 22afafa

Please sign in to comment.