commit 6fce560
default
·
2023-07-04 14:54:41 +0000 UTC
parent 9c7cc7b
The actor bio now accepts tags.
1 files changed,
+4,
-1
+4,
-1
1@@ -839,6 +839,7 @@ xs_dict *msg_actor(snac *snac)
2 xs *ctxt = xs_list_new();
3 xs *icon = xs_dict_new();
4 xs *keys = xs_dict_new();
5+ xs *tags = xs_list_new();
6 xs *avtr = NULL;
7 xs *kid = NULL;
8 xs *f_bio = NULL;
9@@ -856,8 +857,10 @@ xs_dict *msg_actor(snac *snac)
10 msg = xs_dict_set(msg, "preferredUsername", snac->uid);
11 msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published"));
12
13- f_bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
14+ xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
15+ process_tags(snac, f_bio_2, &f_bio, &tags);
16 msg = xs_dict_set(msg, "summary", f_bio);
17+ msg = xs_dict_set(msg, "tag", tags);
18
19 char *folders[] = { "inbox", "outbox", "followers", "following", NULL };
20 for (n = 0; folders[n]; n++) {