From a3b9ef5b98530a81f648b397fed91d78349dc4cd Mon Sep 17 00:00:00 2001 From: default Date: Tue, 20 Feb 2024 06:10:42 +0100 Subject: 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. --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 31ab63c..01e0c68 100644 --- a/utils.c +++ b/utils.c @@ -491,12 +491,12 @@ void verify_links(snac *user) /* is it the same as the actor? */ if (strcmp(href, user->actor) == 0) { /* got it! */ - xs *verified_at = xs_str_utctime(0, ISO_DATE_SPEC); + xs *verified_time = xs_number_new((double)time(NULL)); if (user->links == NULL) user->links = xs_dict_new(); - user->links = xs_dict_set(user->links, v, verified_at); + user->links = xs_dict_set(user->links, v, verified_time); vfied = 1; } -- cgit v1.2.3