Code updates for nostr-type changes

This commit is contained in:
Mike Dilger 2023-01-07 15:19:45 +13:00
parent 4c9170b3c3
commit 16b9027867

View File

@ -90,11 +90,11 @@ impl People {
if asof.0 > metadata_at { if asof.0 > metadata_at {
// Process fresh metadata // Process fresh metadata
person.name = metadata.name; person.name = metadata.get("name");
person.about = metadata.about; person.about = metadata.get("about");
person.picture = metadata.picture; person.picture = metadata.get("picture");
if person.dns_id != metadata.nip05 { if person.dns_id != metadata.get("nip05") {
person.dns_id = metadata.nip05; person.dns_id = metadata.get("nip05");
person.dns_id_valid = 0; // changed, so reset to invalid person.dns_id_valid = 0; // changed, so reset to invalid
person.dns_id_last_checked = None; // we haven't checked this one yet person.dns_id_last_checked = None; // we haven't checked this one yet
} }