summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-07-04 16:54:41 +0200
committerdefault <nobody@localhost>2023-07-04 16:54:41 +0200
commit6fce560f015ba126675a770f035bff3971f64f1c (patch)
treeb08e8374cd102b5e713fdc297cec8441a482c4e7 /activitypub.c
parent9c7cc7b710f48d8ca1105200c0a7ef935d251d25 (diff)
The actor bio now accepts tags.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index d0ef866..4791ac3 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -839,6 +839,7 @@ xs_dict *msg_actor(snac *snac)
xs *ctxt = xs_list_new();
xs *icon = xs_dict_new();
xs *keys = xs_dict_new();
+ xs *tags = xs_list_new();
xs *avtr = NULL;
xs *kid = NULL;
xs *f_bio = NULL;
@@ -856,8 +857,10 @@ xs_dict *msg_actor(snac *snac)
msg = xs_dict_set(msg, "preferredUsername", snac->uid);
msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published"));
- f_bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
+ xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
+ process_tags(snac, f_bio_2, &f_bio, &tags);
msg = xs_dict_set(msg, "summary", f_bio);
+ msg = xs_dict_set(msg, "tag", tags);
char *folders[] = { "inbox", "outbox", "followers", "following", NULL };
for (n = 0; folders[n]; n++) {