mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 03:33:53 +00:00
Code updates for nostr-type changes
This commit is contained in:
parent
4c9170b3c3
commit
16b9027867
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user