From c7e8f3783bd77e22755f958faa0cff03424f00ef Mon Sep 17 00:00:00 2001 From: default Date: Thu, 7 Nov 2024 22:00:25 +0100 Subject: Moved make_url() to data.c. --- html.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 12efea5..cb6c380 100644 --- a/html.c +++ b/html.c @@ -42,22 +42,6 @@ int login(snac *snac, const xs_dict *headers) } -xs_str *make_url(const char *href, const char *proxy) -/* makes an URL, possibly including proxying */ -{ - xs_str *url = NULL; - - if (proxy && !xs_startswith(href, srv_baseurl)) { - xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); - url = xs_replace(href, "https:/" "/", p); - } - else - url = xs_dup(href); - - return url; -} - - xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *proxy) /* replaces all the :shortnames: with the emojis in tag */ { -- cgit v1.2.3