chore: Deduplicate tags

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-27 08:45:20 +00:00
parent ea862dac5f
commit 15d834dc0f
4 changed files with 4 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ impl CommandRunner for NewArgs {
subject,
self.label,
)?
.dedup_tags()
.pow(options.pow)
.tags(content_details.into_tags())
// p-tag the reset of the reposotoies owners

View File

@@ -192,9 +192,9 @@ impl CommandRunner for ReplyArgs {
root.as_ref(),
repos.first().and_then(|r| r.relays.first()).cloned(),
)
.dedup_tags()
.pow(options.pow)
.tags(content_details.into_tags())
.tag(Tag::public_key(reply_to.pubkey))
.build(user_pubk);
let event_id = event.id.expect("There is an id");

View File

@@ -115,6 +115,7 @@ impl CommandRunner for AnnounceArgs {
self.label.into_iter().map(utils::str_trim).collect(),
self.force_id,
)?
.dedup_tags()
.pow(options.pow)
.build(user_pubk);

View File

@@ -102,6 +102,7 @@ impl EventBuilder {
euc: None,
maintainers,
})?
.dedup_tags()
.tags(labels.into_iter().map(Tag::hashtag)),
)
}