|
|
@@ -2320,29 +2320,6 @@ xs_html *html_entry_controls(snac *user, const char *actor,
|
|
|
}
|
|
|
|
|
|
|
|
|
-static const xs_str* words_in_content(const xs_list *words, const xs_val *content)
|
|
|
-/* returns a word that matches any of the words in content */
|
|
|
-{
|
|
|
- if (!xs_is_list(words) || !xs_is_string(content)) {
|
|
|
- return NULL;
|
|
|
- }
|
|
|
- xs *c = xs_split(content, " ");
|
|
|
- xs *sc = xs_list_sort(c, NULL);
|
|
|
-
|
|
|
- const xs_str *wv;
|
|
|
- const xs_str *cv;
|
|
|
- xs_list_foreach(words, wv) {
|
|
|
- xs_list_foreach(sc, cv) {
|
|
|
- xs_tolower_i((xs_str*)cv);
|
|
|
- if(xs_str_in(cv, wv) != -1)
|
|
|
- return wv;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return NULL;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
|
|
|
int level, const char *md5, int hide_children, int tb_friendly)
|
|
|
{
|