diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1502,7 +1502,7 @@ static xs_html *html_button(char *clss, char *label, char *hint) | |||
| 1502 | } | 1502 | } |
| 1503 | 1503 | ||
| 1504 | 1504 | ||
| 1505 | xs_str *build_mentions(snac *snac, const xs_dict *msg) | 1505 | xs_str *build_mentions(snac *user, const xs_dict *msg) |
| 1506 | /* returns a string with the mentions in msg */ | 1506 | /* returns a string with the mentions in msg */ |
| 1507 | { | 1507 | { |
| 1508 | xs_str *s = xs_str_new(NULL); | 1508 | xs_str *s = xs_str_new(NULL); |
| @@ -1516,7 +1516,7 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg) | |||
| 1516 | const char *name = xs_dict_get(v, "name"); | 1516 | const char *name = xs_dict_get(v, "name"); |
| 1517 | 1517 | ||
| 1518 | if (type && strcmp(type, "Mention") == 0 && | 1518 | if (type && strcmp(type, "Mention") == 0 && |
| 1519 | href && strcmp(href, snac->actor) != 0 && name) { | 1519 | href && strcmp(href, user->actor) != 0 && name) { |
| 1520 | xs *s1 = NULL; | 1520 | xs *s1 = NULL; |
| 1521 | 1521 | ||
| 1522 | if (name[0] != '@') { | 1522 | if (name[0] != '@') { |