commit 5ad4d7c
grunfink
·
2026-04-02 14:55:22 +0000 UTC
parent 98f2047
Also exclude the favicon_url in server.json from user directories.
1 files changed,
+6,
-0
M
data.c
M
data.c
+6,
-0
1@@ -4301,6 +4301,12 @@ void purge_static(snac *user)
2
3 snac_debug(user, 2, xs_fmt("purge_static: excluding '%s'", v));
4 }
5+ if (xs_is_string(v = xs_dict_get(srv_config, "favicon_url")) && xs_dict_get(files, v)) {
6+ files = xs_dict_del(files, v);
7+ cnt--;
8+
9+ snac_debug(user, 2, xs_fmt("purge_static: excluding '%s'", v));
10+ }
11
12 /* exclude emojis served from the static directory */
13 xs *emo = emojis();