From 756e8cb2a7936acea6f6f26580c8d632ab30d70f Mon Sep 17 00:00:00 2001 From: default Date: Fri, 27 Jan 2023 18:28:55 +0100 Subject: More tweaks to the default avatar. --- activitypub.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 43d845c..663ee3f 100644 --- a/activitypub.c +++ b/activitypub.c @@ -37,7 +37,12 @@ const char *susie_cool = const char *default_avatar_base64(void) /* returns the default avatar in base64 */ { - return susie; + time_t t = time(NULL); + struct tm tm; + + gmtime_r(&t, &tm); + + return tm.tm_wday == 0 || tm.tm_wday == 6 ? susie_cool : susie; } -- cgit v1.2.3