summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 5a62d16..bade62a 100644
--- a/html.c
+++ b/html.c
@@ -12,6 +12,7 @@
12#include "xs_match.h" 12#include "xs_match.h"
13#include "xs_html.h" 13#include "xs_html.h"
14#include "xs_curl.h" 14#include "xs_curl.h"
15#include "xs_unicode.h"
15 16
16#include "snac.h" 17#include "snac.h"
17 18
@@ -2203,8 +2204,11 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2203 2204
2204 if (xs_type(type) == XSTYPE_STRING && strcmp(type, "Hashtag") == 0) { 2205 if (xs_type(type) == XSTYPE_STRING && strcmp(type, "Hashtag") == 0) {
2205 const char *href = xs_dict_get(tag, "href"); 2206 const char *href = xs_dict_get(tag, "href");
2207 xs *lc_href = xs_utf8_to_lower(href);
2206 2208
2207 if (xs_type(href) == XSTYPE_STRING && xs_str_in(content, href) == -1) { 2209 if (xs_type(href) == XSTYPE_STRING &&
2210 xs_str_in(content, href) == -1 &&
2211 xs_str_in(content, lc_href) == -1) {
2208 /* not in the content: add here */ 2212 /* not in the content: add here */
2209 const char *name = xs_dict_get(tag, "name"); 2213 const char *name = xs_dict_get(tag, "name");
2210 2214