snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 756e8cb2a7936acea6f6f26580c8d632ab30d70f
parent aecfcacc323c3b3555ed4147064c0c1f6c9a0827
Author: default <nobody@localhost>
Date:   Fri, 27 Jan 2023 18:28:55 +0100

More tweaks to the default avatar.

Diffstat:
Mactivitypub.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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; }