diff options
| author | 2025-01-08 20:06:17 +0100 | |
|---|---|---|
| committer | 2025-01-08 20:06:17 +0100 | |
| commit | 74cd356be8ba270c76202c7c55b5b07ab4bfd22c (patch) | |
| tree | b7e480a19fe3442c1389146675361920d225d4c6 | |
| parent | Fixed crash on NULL hashtag href. (diff) | |
| download | snac2-74cd356be8ba270c76202c7c55b5b07ab4bfd22c.tar.gz snac2-74cd356be8ba270c76202c7c55b5b07ab4bfd22c.tar.xz snac2-74cd356be8ba270c76202c7c55b5b07ab4bfd22c.zip | |
Deleted useless check.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2209,7 +2209,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2209 | if (xs_type(o_href) == XSTYPE_STRING) { | 2209 | if (xs_type(o_href) == XSTYPE_STRING) { |
| 2210 | xs *href = xs_utf8_to_lower(o_href); | 2210 | xs *href = xs_utf8_to_lower(o_href); |
| 2211 | 2211 | ||
| 2212 | if (xs_type(href) == XSTYPE_STRING && xs_str_in(content, href) == -1) { | 2212 | if (xs_str_in(content, href) == -1) { |
| 2213 | /* not in the content: add here */ | 2213 | /* not in the content: add here */ |
| 2214 | const char *name = xs_dict_get(tag, "name"); | 2214 | const char *name = xs_dict_get(tag, "name"); |
| 2215 | 2215 | ||