From 2190fd660f2920e49111c9415e1b8351dd4ed89b Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 22 Jul 2023 12:04:57 -0500 Subject: [PATCH] Update submodules, add log message when an account isn't ready to be updated --- src/ap | 2 +- src/controller/fetch.c | 6 ++++++ src/json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ap b/src/ap index e91d012..e239bec 160000 --- a/src/ap +++ b/src/ap @@ -1 +1 @@ -Subproject commit e91d01207ed07972864b43d24a2137edc583dc9d +Subproject commit e239bec5047699782d269fe6c33ed1aa87206734 diff --git a/src/controller/fetch.c b/src/controller/fetch.c index a9bbd53..5876bc6 100644 --- a/src/controller/fetch.c +++ b/src/controller/fetch.c @@ -6,6 +6,7 @@ // Submodules #include "ffdb/trie.h" +#include "util/time.h" #include #include @@ -68,6 +69,11 @@ static void process_account_sync_once() if( time(NULL) >= a->next_update ) { account_sync_from_activity_pub( a->id ); + } else { + char buffer[512]; + rfc3339_time_string( a->next_update, buffer,512 ); + + printf( "Account not yet due for update. Holding until %s\n", buffer ); } account_free(a); diff --git a/src/json b/src/json index 4b85946..31be475 160000 --- a/src/json +++ b/src/json @@ -1 +1 @@ -Subproject commit 4b85946cdf6c632c0ce6133cd69c50841105724f +Subproject commit 31be475dc44c76e889c31d1a74b6ada25984951c