diff options
| author | 2023-07-04 16:54:41 +0200 | |
|---|---|---|
| committer | 2023-07-04 16:54:41 +0200 | |
| commit | 6fce560f015ba126675a770f035bff3971f64f1c (patch) | |
| tree | b08e8374cd102b5e713fdc297cec8441a482c4e7 /activitypub.c | |
| parent | index_list() and index_list_desc() don't return deleted entries. (diff) | |
| download | snac2-6fce560f015ba126675a770f035bff3971f64f1c.tar.gz snac2-6fce560f015ba126675a770f035bff3971f64f1c.tar.xz snac2-6fce560f015ba126675a770f035bff3971f64f1c.zip | |
The actor bio now accepts tags.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
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) | |||
| 839 | xs *ctxt = xs_list_new(); | 839 | xs *ctxt = xs_list_new(); |
| 840 | xs *icon = xs_dict_new(); | 840 | xs *icon = xs_dict_new(); |
| 841 | xs *keys = xs_dict_new(); | 841 | xs *keys = xs_dict_new(); |
| 842 | xs *tags = xs_list_new(); | ||
| 842 | xs *avtr = NULL; | 843 | xs *avtr = NULL; |
| 843 | xs *kid = NULL; | 844 | xs *kid = NULL; |
| 844 | xs *f_bio = NULL; | 845 | xs *f_bio = NULL; |
| @@ -856,8 +857,10 @@ xs_dict *msg_actor(snac *snac) | |||
| 856 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); | 857 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); |
| 857 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); | 858 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); |
| 858 | 859 | ||
| 859 | f_bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); | 860 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); |
| 861 | process_tags(snac, f_bio_2, &f_bio, &tags); | ||
| 860 | msg = xs_dict_set(msg, "summary", f_bio); | 862 | msg = xs_dict_set(msg, "summary", f_bio); |
| 863 | msg = xs_dict_set(msg, "tag", tags); | ||
| 861 | 864 | ||
| 862 | char *folders[] = { "inbox", "outbox", "followers", "following", NULL }; | 865 | char *folders[] = { "inbox", "outbox", "followers", "following", NULL }; |
| 863 | for (n = 0; folders[n]; n++) { | 866 | for (n = 0; folders[n]; n++) { |