diff options
| author | grunfink <grunfink@comam.es> | 2026-04-02 15:59:28 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-04-02 15:59:28 +0200 |
| commit | aed115a8dad8c8a643bab9f4c9dd144db8e5d6b7 (patch) | |
| tree | d2da95a49ecbb4065817c3eeca21ec4df111ad7b /data.c | |
| parent | c9279e2a6c07786e3d20f0b935f741b55359008d (diff) | |
Also exclude a user's style.css from purge_static().
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4270,6 +4270,11 @@ void purge_static(snac *user) /* fill a dict with the static resource urls */ xs_list_foreach(fns, v) { + if (strcmp(v, "style.css") == 0) { + snac_debug(user, 2, xs_fmt("purge_static: excluding '%s'", v)); + continue; + } + xs *s = xs_fmt("%s/s/%s", user->actor, v); xs *fn = xs_fmt("%s/static/%s", user->basedir, v); |