diff options
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1375,8 +1375,8 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 1375 | 1375 | ||
| 1376 | if (*fn != '\0') { | 1376 | if (*fn != '\0') { |
| 1377 | char *ext = strrchr(fn, '.'); | 1377 | char *ext = strrchr(fn, '.'); |
| 1378 | xs *ntid = tid(0); | 1378 | xs *hash = xs_md5_hex(fn, strlen(fn)); |
| 1379 | xs *id = xs_fmt("%s%s", ntid, ext); | 1379 | xs *id = xs_fmt("%s%s", hash, ext); |
| 1380 | xs *url = xs_fmt("%s/s/%s", snac.actor, id); | 1380 | xs *url = xs_fmt("%s/s/%s", snac.actor, id); |
| 1381 | int fo = xs_number_get(xs_list_get(attach_file, 1)); | 1381 | int fo = xs_number_get(xs_list_get(attach_file, 1)); |
| 1382 | int fs = xs_number_get(xs_list_get(attach_file, 2)); | 1382 | int fs = xs_number_get(xs_list_get(attach_file, 2)); |