Skip to content

Commit

Permalink
fix: tag position
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Nov 8, 2024
1 parent 9322564 commit fc61933
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/nostr/src/event/tag/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,13 @@ impl From<TagStandard> for Vec<String> {
if let Some(marker) = marker {
tag.resize_with(3, String::new);
tag.push(marker.to_string());
}
if let Some(public_key) = public_key {
tag.resize_with(4, String::new);

if let Some(public_key) = public_key {
tag.resize_with(4, String::new);
tag.push(public_key.to_string());
}
} else if let Some(public_key) = public_key {
tag.resize_with(3, String::new);
tag.push(public_key.to_string());
}
tag
Expand Down

0 comments on commit fc61933

Please sign in to comment.