update nostrdb to fix note corruption bug

Changelog-Fixed: fix note content corruption bug with damus.io links
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-08-01 13:44:28 -07:00
parent 20f0aed2ed
commit 6e27c34267
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -2296,7 +2296,7 @@ dependencies = [
[[package]]
name = "nostrdb"
version = "0.3.4"
source = "git+https://github.com/damus-io/nostrdb-rs?rev=8ef4b9c26145572ad7543d955778499e84723099#8ef4b9c26145572ad7543d955778499e84723099"
source = "git+https://github.com/damus-io/nostrdb-rs?rev=aa931882319899d80afc0d33fd87424a96a4ee63#aa931882319899d80afc0d33fd87424a96a4ee63"
dependencies = [
"bindgen",
"cc",

View File

@@ -33,7 +33,7 @@ serde_json = "1.0.89"
env_logger = "0.10.0"
puffin_egui = { version = "0.27.0", optional = true }
puffin = { version = "0.19.0", optional = true }
nostrdb = { git = "https://github.com/damus-io/nostrdb-rs", rev = "8ef4b9c26145572ad7543d955778499e84723099" }
nostrdb = { git = "https://github.com/damus-io/nostrdb-rs", rev = "aa931882319899d80afc0d33fd87424a96a4ee63" }
#nostrdb = "0.3.4"
hex = "0.4.3"
base32 = "0.4.0"

View File

@@ -372,7 +372,7 @@ fn poll_notes_for_timeline<'a>(
return Err(Error::NoActiveSubscription);
};
let new_note_ids = damus.ndb.poll_for_notes(sub, 100);
let new_note_ids = damus.ndb.poll_for_notes(sub.id, 100);
if new_note_ids.is_empty() {
return Ok(());
} else {