summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-07-04 17:15:38 +0200
committerGravatar default2023-07-04 17:15:38 +0200
commit38ee86f81e74edec97bf04d999d21221565f44fb (patch)
tree56860dd880c3d4554b16b9b7bed8262754c4bc4b
parentFixed weird prototype of process_tags(). (diff)
downloadsnac2-38ee86f81e74edec97bf04d999d21221565f44fb.tar.gz
snac2-38ee86f81e74edec97bf04d999d21221565f44fb.tar.xz
snac2-38ee86f81e74edec97bf04d999d21221565f44fb.zip
Also call process_tags() when in the public timeline's bio.
-rw-r--r--html.c6
-rw-r--r--snac.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/html.c b/html.c
index 4a04d7c..2eb542a 100644
--- a/html.c
+++ b/html.c
@@ -362,8 +362,10 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
362 s = xs_str_cat(s, s1); 362 s = xs_str_cat(s, s1);
363 363
364 if (local) { 364 if (local) {
365 xs *bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); 365 xs *bio1 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
366 xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio); 366 xs *tags = xs_list_new();
367 xs *bio2 = process_tags(snac, bio1, &tags);
368 xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio2);
367 369
368 s = xs_str_cat(s, s1); 370 s = xs_str_cat(s, s1);
369 } 371 }
diff --git a/snac.h b/snac.h
index 74f4969..171d069 100644
--- a/snac.h
+++ b/snac.h
@@ -207,6 +207,8 @@ int webfinger_get_handler(xs_dict *req, char *q_path,
207 207
208const char *default_avatar_base64(void); 208const char *default_avatar_base64(void);
209 209
210xs_str *process_tags(snac *snac, const char *content, xs_list **tag);
211
210xs_dict *msg_admiration(snac *snac, char *object, char *type); 212xs_dict *msg_admiration(snac *snac, char *object, char *type);
211xs_dict *msg_create(snac *snac, const xs_dict *object); 213xs_dict *msg_create(snac *snac, const xs_dict *object);
212xs_dict *msg_follow(snac *snac, const char *actor); 214xs_dict *msg_follow(snac *snac, const char *actor);