summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index d7e9dd5..31ab63c 100644
--- a/utils.c
+++ b/utils.c
@@ -447,7 +447,7 @@ void verify_links(snac *user)
447 char *ll; 447 char *ll;
448 int vfied = 0; 448 int vfied = 0;
449 449
450 while (xs_list_iter(&lp, &ll)) { 450 while (!vfied && xs_list_iter(&lp, &ll)) {
451 /* extract href and rel */ 451 /* extract href and rel */
452 xs *r = xs_regex_select(ll, "(href|rel) *= *(\"[^\"]*\"|'[^']*')"); 452 xs *r = xs_regex_select(ll, "(href|rel) *= *(\"[^\"]*\"|'[^']*')");
453 453
@@ -493,11 +493,12 @@ void verify_links(snac *user)
493 /* got it! */ 493 /* got it! */
494 xs *verified_at = xs_str_utctime(0, ISO_DATE_SPEC); 494 xs *verified_at = xs_str_utctime(0, ISO_DATE_SPEC);
495 495
496 if (user->links == NULL)
497 user->links = xs_dict_new();
498
496 user->links = xs_dict_set(user->links, v, verified_at); 499 user->links = xs_dict_set(user->links, v, verified_at);
497 500
498 vfied = 1; 501 vfied = 1;
499
500 break;
501 } 502 }
502 else 503 else
503 snac_debug(user, 1, 504 snac_debug(user, 1,