diff options
| author | 2024-02-20 06:10:42 +0100 | |
|---|---|---|
| committer | 2024-02-20 06:10:42 +0100 | |
| commit | a3b9ef5b98530a81f648b397fed91d78349dc4cd (patch) | |
| tree | 1c5cee9bdbe8127e3079eba761f4d084fa9322b5 /utils.c | |
| parent | Enqueue a verify_links q_item in admin/user-setup. (diff) | |
| download | penes-snac2-a3b9ef5b98530a81f648b397fed91d78349dc4cd.tar.gz penes-snac2-a3b9ef5b98530a81f648b397fed91d78349dc4cd.tar.xz penes-snac2-a3b9ef5b98530a81f648b397fed91d78349dc4cd.zip | |
The link verification time is stored as a time_t.
This way, it will be easier in an eventual future to test if
a link verification is too old to be trusted.
Diffstat (limited to '')
| -rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -491,12 +491,12 @@ void verify_links(snac *user) | |||
| 491 | /* is it the same as the actor? */ | 491 | /* is it the same as the actor? */ |
| 492 | if (strcmp(href, user->actor) == 0) { | 492 | if (strcmp(href, user->actor) == 0) { |
| 493 | /* got it! */ | 493 | /* got it! */ |
| 494 | xs *verified_at = xs_str_utctime(0, ISO_DATE_SPEC); | 494 | xs *verified_time = xs_number_new((double)time(NULL)); |
| 495 | 495 | ||
| 496 | if (user->links == NULL) | 496 | if (user->links == NULL) |
| 497 | user->links = xs_dict_new(); | 497 | user->links = xs_dict_new(); |
| 498 | 498 | ||
| 499 | user->links = xs_dict_set(user->links, v, verified_at); | 499 | user->links = xs_dict_set(user->links, v, verified_time); |
| 500 | 500 | ||
| 501 | vfied = 1; | 501 | vfied = 1; |
| 502 | } | 502 | } |