feat: integrate nostrdb relay indexing
- Upgrade `nostrdb` to v0.6.1 with relay metadata support - Switch to `nostr::RelayUrl` for typed relay URLs - Use `process_event_with()` to pass relay info during ingestion - Update `Relay`, `RelayPool`, and unknown ID logic accordingly This enables richer indexing with relay provenance in events. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -456,11 +456,14 @@ impl TimelineKind {
|
||||
.limit(default_limit())
|
||||
.build()]),
|
||||
|
||||
TimelineKind::Hashtag(hashtag) => FilterState::ready(vec![Filter::new()
|
||||
.kinds([1])
|
||||
.limit(filter::default_limit())
|
||||
.tags([hashtag.to_lowercase()], 't')
|
||||
.build()]),
|
||||
TimelineKind::Hashtag(hashtag) => {
|
||||
let url: &str = &hashtag.to_lowercase();
|
||||
FilterState::ready(vec![Filter::new()
|
||||
.kinds([1])
|
||||
.limit(filter::default_limit())
|
||||
.tags([url], 't')
|
||||
.build()])
|
||||
}
|
||||
|
||||
TimelineKind::Algo(algo_timeline) => match algo_timeline {
|
||||
AlgoTimeline::LastPerPubkey(list_k) => match list_k {
|
||||
|
||||
@@ -244,10 +244,12 @@ impl Timeline {
|
||||
}
|
||||
|
||||
pub fn hashtag(hashtag: String) -> Self {
|
||||
let hashtag = hashtag.to_lowercase();
|
||||
let htag: &str = &hashtag;
|
||||
let filter = Filter::new()
|
||||
.kinds([1])
|
||||
.limit(filter::default_limit())
|
||||
.tags([hashtag.to_lowercase()], 't')
|
||||
.tags([htag], 't')
|
||||
.build();
|
||||
|
||||
Timeline::new(
|
||||
|
||||
Reference in New Issue
Block a user