diff options
author | default <nobody@localhost> | 2023-05-12 10:15:44 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-12 10:15:44 +0200 |
commit | 3d4bf235f06e39b9809237813cf419d2751ca42a (patch) | |
tree | b96aded93c4a083ac607a1e78cfea1c8a08efbc0 /activitypub.c | |
parent | 7e173103974cb3a9279afce888ecbac1953dbd25 (diff) |
Minor function prototype tweak.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 9069d03..1e8ae6d 100644 --- a/activitypub.c +++ b/activitypub.c @@ -358,13 +358,14 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg) } -void process_tags(snac *snac, const char *content, d_char **n_content, d_char **tag) +void process_tags(snac *snac, const char *content, xs_str **n_content, xs_list **tag) /* parses mentions and tags from content */ { - d_char *nc = xs_str_new(NULL); - d_char *tl = xs_list_new(); + xs_str *nc = xs_str_new(NULL); + xs_list *tl = xs_list_new(); xs *split; - char *p, *v; + xs_list *p; + xs_val *v; int n = 0; split = xs_regex_split(content, "(@[A-Za-z0-9_]+@[A-Za-z0-9\\.-]+|&#[0-9]+;|#[^ ,\\.:;<]+)"); |