@@ -20,7 +20,7 @@ pub mod config;
|
|||||||
pub mod issue;
|
pub mod issue;
|
||||||
/// `patch` subcommands
|
/// `patch` subcommands
|
||||||
pub mod patch;
|
pub mod patch;
|
||||||
/// 'reply` command
|
/// `reply` command
|
||||||
pub mod reply;
|
pub mod reply;
|
||||||
/// `repo` subcommands
|
/// `repo` subcommands
|
||||||
pub mod repo;
|
pub mod repo;
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ impl CommandRunner for ReplyArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a quoted reply string in the format "On yyyy-mm-dd at hh:mm UTC,
|
/// Creates a quoted reply string in the format "On yyyy-mm-dd at hh:mm UTC,
|
||||||
/// <author> wrote:" followed by the event content. Uses display name if
|
/// {author} wrote:" followed by the event content. Uses display name if
|
||||||
/// available, otherwise falls back to a shortened npub string. Dates are
|
/// available, otherwise falls back to a shortened npub string. Dates are
|
||||||
/// formatted in UTC.
|
/// formatted in UTC.
|
||||||
async fn quote_reply_to_content(client: &NostrClient, quoted_event: &Event) -> String {
|
async fn quote_reply_to_content(client: &NostrClient, quoted_event: &Event) -> String {
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ impl FromStr for NostrEvent {
|
|||||||
#[easy_ext::ext(NaddrOrSetVecExt)]
|
#[easy_ext::ext(NaddrOrSetVecExt)]
|
||||||
impl Vec<NaddrOrSet> {
|
impl Vec<NaddrOrSet> {
|
||||||
/// Converts this vector of [`NaddrOrSet`] into a flat vector of
|
/// Converts this vector of [`NaddrOrSet`] into a flat vector of
|
||||||
/// [`Nip19Coordinates`] using the given sets.
|
/// [`Nip19Coordinate`] using the given sets.
|
||||||
pub fn flat_naddrs(self, sets: &[RepoRelaySet]) -> N34Result<Vec<Nip19Coordinate>> {
|
pub fn flat_naddrs(self, sets: &[RepoRelaySet]) -> N34Result<Vec<Nip19Coordinate>> {
|
||||||
self.into_iter()
|
self.into_iter()
|
||||||
.map(|n| n.get_naddrs(sets))
|
.map(|n| n.get_naddrs(sets))
|
||||||
@@ -206,7 +206,7 @@ impl Vec<RelayOrSet> {
|
|||||||
#[easy_ext::ext(OptionNaddrOrSetVecExt)]
|
#[easy_ext::ext(OptionNaddrOrSetVecExt)]
|
||||||
impl Option<Vec<NaddrOrSet>> {
|
impl Option<Vec<NaddrOrSet>> {
|
||||||
/// Converts this vector of [`NaddrOrSet`] into a flat vector of
|
/// Converts this vector of [`NaddrOrSet`] into a flat vector of
|
||||||
/// [`Nip19Coordinates`] using the given sets.
|
/// [`Nip19Coordinate`] using the given sets.
|
||||||
pub fn flat_naddrs(&self, sets: &[RepoRelaySet]) -> N34Result<Option<Vec<Nip19Coordinate>>> {
|
pub fn flat_naddrs(&self, sets: &[RepoRelaySet]) -> N34Result<Option<Vec<Nip19Coordinate>>> {
|
||||||
// Clones self here to simplify command code
|
// Clones self here to simplify command code
|
||||||
self.clone()
|
self.clone()
|
||||||
|
|||||||
Reference in New Issue
Block a user