diff options
| author | grunfink <grunfink@comam.es> | 2026-08-03 04:54:03 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-03 04:54:03 +0200 |
| commit | de81a9c59ab513ce473cdca1091fdd81de9fe45e (patch) | |
| tree | f30c33af2c61a6406afe4315deb4727abbb71f44 | |
| parent | cce687bd601680741e93ab75da3d02a99c676387 (diff) | |
When mentioning, allow users with - in their names.
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 39029b6..92eb7f5 100644 --- a/activitypub.c +++ b/activitypub.c @@ -940,7 +940,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) /* use this same server */ def_srv = xs_dup(xs_dict_get(srv_config, "host")); - split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#(_|[^[:punct:][:space:]])+)"); + split = xs_regex_split(content, "(@[A-Za-z0-9_-]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#(_|[^[:punct:][:space:]])+)"); p = split; while (xs_list_iter(&p, &v)) { |