diff options
| author | 2022-12-08 06:03:52 +0000 | |
|---|---|---|
| committer | 2022-12-08 06:03:52 +0000 | |
| commit | 7565b8f39701aaa53b4868ad9c17d0a6fb63c4d2 (patch) | |
| tree | 55e4fdaf89c77e2d8f73b436d73f43fae3d3b2c4 /html.c | |
| parent | Ask for just 1 more entry beyond the current page to test if there are more. (diff) | |
| parent | Fix mentions with one @ sign (diff) | |
| download | snac2-7565b8f39701aaa53b4868ad9c17d0a6fb63c4d2.tar.gz snac2-7565b8f39701aaa53b4868ad9c17d0a6fb63c4d2.tar.xz snac2-7565b8f39701aaa53b4868ad9c17d0a6fb63c4d2.zip | |
Merge pull request 'Fix mentions with one @ sign' (#16) from kensanata/snac2:fix-mention-with-one-at-sign into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/16
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -367,6 +367,7 @@ d_char *build_mentions(snac *snac, char *msg) | |||
| 367 | 367 | ||
| 368 | if (type && strcmp(type, "Mention") == 0 && | 368 | if (type && strcmp(type, "Mention") == 0 && |
| 369 | href && strcmp(href, snac->actor) != 0 && name) { | 369 | href && strcmp(href, snac->actor) != 0 && name) { |
| 370 | if (name[0] != '@') name = xs_str_cat(xs_str_new("@"), name); | ||
| 370 | xs *l = xs_split(name, "@"); | 371 | xs *l = xs_split(name, "@"); |
| 371 | 372 | ||
| 372 | /* is it a name without a host? */ | 373 | /* is it a name without a host? */ |