aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-04-02 15:59:28 +0200
committergrunfink <grunfink@comam.es>2026-04-02 15:59:28 +0200
commitaed115a8dad8c8a643bab9f4c9dd144db8e5d6b7 (patch)
treed2da95a49ecbb4065817c3eeca21ec4df111ad7b /data.c
parentc9279e2a6c07786e3d20f0b935f741b55359008d (diff)
Also exclude a user's style.css from purge_static().
Diffstat (limited to 'data.c')
-rw-r--r--data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/data.c b/data.c
index 40f7ce1..a75ced6 100644
--- a/data.c
+++ b/data.c
@@ -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);