summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-27 18:28:55 +0100
committerdefault <nobody@localhost>2023-01-27 18:28:55 +0100
commit756e8cb2a7936acea6f6f26580c8d632ab30d70f (patch)
tree9106c96c24ee537716809878d997c6aee22bd810 /activitypub.c
parentaecfcacc323c3b3555ed4147064c0c1f6c9a0827 (diff)
More tweaks to the default avatar.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
1 files changed, 6 insertions, 1 deletions
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;
}