diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/list.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index 2de3151..981307d 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -13,6 +13,7 @@ use ngit::{ | |||
| 13 | }, | 13 | }, |
| 14 | repo_ref::{RepoRef, is_grasp_server_in_list}, | 14 | repo_ref::{RepoRef, is_grasp_server_in_list}, |
| 15 | }; | 15 | }; |
| 16 | use nostr::filter::{Alphabet, SingleLetterTag}; | ||
| 16 | use nostr_sdk::Kind; | 17 | use nostr_sdk::Kind; |
| 17 | 18 | ||
| 18 | use crate::{ | 19 | use crate::{ |
| @@ -59,6 +60,12 @@ pub async fn launch() -> Result<()> { | |||
| 59 | nostr::Filter::default() | 60 | nostr::Filter::default() |
| 60 | .kinds(status_kinds().clone()) | 61 | .kinds(status_kinds().clone()) |
| 61 | .events(proposals_and_revisions.iter().map(|e| e.id)), | 62 | .events(proposals_and_revisions.iter().map(|e| e.id)), |
| 63 | nostr::Filter::default() | ||
| 64 | .custom_tags( | ||
| 65 | SingleLetterTag::uppercase(Alphabet::E), | ||
| 66 | proposals_and_revisions.iter().map(|e| e.id), | ||
| 67 | ) | ||
| 68 | .kinds(status_kinds().clone()), | ||
| 62 | ], | 69 | ], |
| 63 | ) | 70 | ) |
| 64 | .await?; | 71 | .await?; |