commit aed115a

grunfink  ·  2026-04-02 13:59:28 +0000 UTC
parent c9279e2
Also exclude a user's style.css from purge_static().
1 files changed,  +5, -0
M data.c
M data.c
+5, -0
 1@@ -4270,6 +4270,11 @@ void purge_static(snac *user)
 2 
 3     /* fill a dict with the static resource urls */
 4     xs_list_foreach(fns, v) {
 5+        if (strcmp(v, "style.css") == 0) {
 6+            snac_debug(user, 2, xs_fmt("purge_static: excluding '%s'", v));
 7+            continue;
 8+        }
 9+
10         xs *s = xs_fmt("%s/s/%s", user->actor, v);
11 
12         xs *fn = xs_fmt("%s/static/%s", user->basedir, v);