diff options
| author | 2024-11-07 20:04:02 +0100 | |
|---|---|---|
| committer | 2024-11-07 20:04:02 +0100 | |
| commit | eb6d3d0d0eeb18f470a00d245ba913f8d705abe0 (patch) | |
| tree | 22c144d376ec8f3efe338a0aa9afa4cc433bef25 /html.c | |
| parent | Propagate 'last-modified' and 'etag' fields while proxying. (diff) | |
| download | snac2-eb6d3d0d0eeb18f470a00d245ba913f8d705abe0.tar.gz snac2-eb6d3d0d0eeb18f470a00d245ba913f8d705abe0.tar.xz snac2-eb6d3d0d0eeb18f470a00d245ba913f8d705abe0.zip | |
Omit the 'image' field if there are any attachment.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -50,8 +50,6 @@ xs_str *make_url(const char *href, const char *proxy) | |||
| 50 | if (proxy) { | 50 | if (proxy) { |
| 51 | xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); | 51 | xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); |
| 52 | url = xs_replace(href, "https:/" "/", p); | 52 | url = xs_replace(href, "https:/" "/", p); |
| 53 | |||
| 54 | srv_debug(1, xs_fmt("Proxying %s %s", href, url)); | ||
| 55 | } | 53 | } |
| 56 | else | 54 | else |
| 57 | url = xs_dup(href); | 55 | url = xs_dup(href); |
| @@ -3244,6 +3242,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3244 | } | 3242 | } |
| 3245 | } | 3243 | } |
| 3246 | } | 3244 | } |
| 3245 | |||
| 3246 | snac_debug(&snac, 1, xs_fmt("Proxy for %s %d", url, status)); | ||
| 3247 | } | 3247 | } |
| 3248 | } | 3248 | } |
| 3249 | else | 3249 | else |