filters: fix hashtag filters
We might need to move to something a bit more generic that works for all generic tag filters.
This commit is contained in:
@@ -24,6 +24,11 @@ pub fn convert_enostr_filter(filter: &enostr::Filter) -> nostrdb::Filter {
|
||||
nfilter.pubkeys(pubkeys.iter().map(|a| *a.bytes()).collect());
|
||||
}
|
||||
|
||||
// #t
|
||||
if let Some(ref hashtags) = filter.hashtags {
|
||||
nfilter.tags(hashtags.clone(), 't');
|
||||
}
|
||||
|
||||
if let Some(since) = filter.since {
|
||||
nfilter.since(since);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user