diff options
author | default <nobody@localhost> | 2023-05-20 19:25:52 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-20 19:25:52 +0200 |
commit | a597eb7352d439e6380c5790fcad7b7d16b6aff2 (patch) | |
tree | 8a70be7e4c97898f79909929c198211bdb0dcfcd /activitypub.c | |
parent | c27b9533401e1876f58759dadab96f249e6d628a (diff) |
Improved default avatars.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 57c3259..7344522 100644 --- a/activitypub.c +++ b/activitypub.c @@ -32,16 +32,30 @@ const char *susie_cool = "+ZcgN7wF7ZVihXkfSlWIVzIA6dbQzaygllpNuTX" "ZmmFNlvxADX1+o0cUPMbAAAAAElFTkSuQmCC"; +const char *susie_muertos = + "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC" + "CEkxzAAAAVklEQVQoz4XRuQ0AMAwCQDZg/y3ZgG" + "ArNcbNFVHkBwBFYdJg+IITHVDKHYQkXsjjDvl/W" + "JDO6ZmwgN6qgJX5fCE5sNuWKmYHYgVn40pnBXs1" + "2hXbe8UDawL8MY3oY1oAAAAASUVORK5CYII="; + const char *default_avatar_base64(void) /* returns the default avatar in base64 */ { time_t t = time(NULL); struct tm tm; + const char *p = susie; gmtime_r(&t, &tm); - return tm.tm_wday == 0 || tm.tm_wday == 6 ? susie_cool : susie; + if (tm.tm_mon == 10 && tm.tm_mday == 2) + p = susie_muertos; + else + if (tm.tm_wday == 0 || tm.tm_wday == 6) + p = susie_cool; + + return p; } |