mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 08:53:36 +00:00
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
This commit is contained in:
commit
7565b8f397
1 changed files with 1 additions and 0 deletions
1
html.c
1
html.c
|
@ -367,6 +367,7 @@ d_char *build_mentions(snac *snac, char *msg)
|
|||
|
||||
if (type && strcmp(type, "Mention") == 0 &&
|
||||
href && strcmp(href, snac->actor) != 0 && name) {
|
||||
if (name[0] != '@') name = xs_str_cat(xs_str_new("@"), name);
|
||||
xs *l = xs_split(name, "@");
|
||||
|
||||
/* is it a name without a host? */
|
||||
|
|
Loading…
Reference in a new issue