chore: Add the repository to authorized issue status users

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-06-24 11:27:57 +00:00
parent 54cae48123
commit 043ef6fc96
2 changed files with 8 additions and 1 deletions

View File

@@ -192,6 +192,11 @@ impl Vec<Nip19Coordinate> {
self.into_iter().map(|n| n.coordinate).collect()
}
/// Returns all repository owners' public keys from these coordinates.
pub fn extract_owners(&self) -> Vec<PublicKey> {
self.iter().map(|n| n.public_key).collect()
}
/// Extracts all relay URLs from these coordinates
pub fn extract_relays(&self) -> Vec<RelayUrl> {
self.iter().flat_map(|n| n.relays.clone()).collect()