diff options
author | default <nobody@localhost> | 2023-06-26 09:02:34 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-26 09:02:34 +0200 |
commit | baf557ba750b1e39be8c706bafbfb14a13982d57 (patch) | |
tree | 41de61d78d4e7ec62c899a760a22092146d24b0c /utils.c | |
parent | b2598ca307cacb17977e2748730a6a6c37687935 (diff) |
In adduser(), don't copy the system-wide css.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -53,7 +53,8 @@ const char *default_css = ".snac-btn-unfollow { float: right; margin-left: 0.5em }\n" ".snac-btn-hide { float: right; margin-left: 0.5em }\n" ".snac-btn-delete { float: right; margin-left: 0.5em }\n" - ".snac-footer { margin-top: 2em; font-size: 75% }\n"; + ".snac-footer { margin-top: 2em; font-size: 75% }\n" + ".snac-poll-result { margin-left: auto; margin-right: auto; }\n"; const char *greeting_html = "<!DOCTYPE html>\n" @@ -266,26 +267,6 @@ int adduser(const char *uid) mkdirx(d); } - xs *scssfn = xs_fmt("%s/style.css", srv_basedir); - xs *ucssfn = xs_fmt("%s/static/style.css", basedir); - - if ((f = fopen(scssfn, "r")) != NULL) { - FILE *i; - - if ((i = fopen(ucssfn, "w")) == NULL) { - printf("ERROR: cannot create file '%s'\n", ucssfn); - return 1; - } - else { - xs *c = xs_readall(f); - fwrite(c, strlen(c), 1, i); - - fclose(i); - } - - fclose(f); - } - xs *cfn = xs_fmt("%s/user.json", basedir); if ((f = fopen(cfn, "w")) == NULL) { |