commit dfd246a
grunfink
·
2025-06-07 06:19:40 +0000 UTC
parent 6e26dc7
Always store resolved account handles as metadata, even if they weren't verified.
1 files changed,
+8,
-4
M
utils.c
M
utils.c
+8,
-4
1@@ -497,6 +497,14 @@ void verify_links(snac *user)
2 if (valid_status(webfinger_request(v, &wfinger, NULL)) && xs_is_string(wfinger)) {
3 ov = v;
4 v = wfinger;
5+
6+ /* store the alias */
7+ if (user->links == NULL)
8+ user->links = xs_dict_new();
9+
10+ user->links = xs_dict_set(user->links, ov, v);
11+
12+ changed++;
13 }
14 }
15
16@@ -575,10 +583,6 @@ void verify_links(snac *user)
17
18 user->links = xs_dict_set(user->links, v, verified_time);
19
20- /* also add the original value if it was 'resolved' */
21- if (xs_is_string(ov))
22- user->links = xs_dict_set(user->links, ov, v);
23-
24 vfied = 1;
25 }
26 else