diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -1111,12 +1111,16 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg) | |||
| 1111 | 1111 | ||
| 1112 | if (xs_list_len(l2) >= 3) { | 1112 | if (xs_list_len(l2) >= 3) { |
| 1113 | xs *s1 = xs_fmt("%s@%s ", name, xs_list_get(l2, 2)); | 1113 | xs *s1 = xs_fmt("%s@%s ", name, xs_list_get(l2, 2)); |
| 1114 | s = xs_str_cat(s, s1); | 1114 | |
| 1115 | if (xs_str_in(s, s1) == -1) | ||
| 1116 | s = xs_str_cat(s, s1); | ||
| 1115 | } | 1117 | } |
| 1116 | } | 1118 | } |
| 1117 | else { | 1119 | else { |
| 1118 | s = xs_str_cat(s, name); | 1120 | if (xs_str_in(s, name) == -1) { |
| 1119 | s = xs_str_cat(s, " "); | 1121 | s = xs_str_cat(s, name); |
| 1122 | s = xs_str_cat(s, " "); | ||
| 1123 | } | ||
| 1120 | } | 1124 | } |
| 1121 | } | 1125 | } |
| 1122 | } | 1126 | } |