diff options
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | html.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 96c3038..0b2fc6a 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -202,7 +202,7 @@ xs_list *get_attachments(const xs_dict *msg) | |||
| 202 | else | 202 | else |
| 203 | attach = xs_dup(p); | 203 | attach = xs_dup(p); |
| 204 | 204 | ||
| 205 | if (xs_type(attach) == XSTYPE_LIST) { | 205 | if (xs_type(attach) == XSTYPE_LIST && xs_list_len(attach) == 0) { |
| 206 | /* does the message have an image? */ | 206 | /* does the message have an image? */ |
| 207 | const xs_dict *d = xs_dict_get(msg, "image"); | 207 | const xs_dict *d = xs_dict_get(msg, "image"); |
| 208 | if (xs_type(d) == XSTYPE_DICT) { | 208 | if (xs_type(d) == XSTYPE_DICT) { |
| @@ -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 |