commit 756e8cb

default  ·  2023-01-27 17:28:55 +0000 UTC
parent aecfcac
More tweaks to the default avatar.
1 files changed,  +6, -1
+6, -1
 1@@ -37,7 +37,12 @@ const char *susie_cool =
 2 const char *default_avatar_base64(void)
 3 /* returns the default avatar in base64 */
 4 {
 5-    return susie;
 6+    time_t t = time(NULL);
 7+    struct tm tm;
 8+
 9+    gmtime_r(&t, &tm);
10+
11+    return tm.tm_wday == 0 || tm.tm_wday == 6 ? susie_cool : susie;
12 }
13 
14