mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
More tweaks to the default avatar.
This commit is contained in:
parent
aecfcacc32
commit
756e8cb2a7
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user