mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Also call process_tags() when in the public timeline's bio.
This commit is contained in:
parent
7e5b02be3f
commit
38ee86f81e
6
html.c
6
html.c
@ -362,8 +362,10 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
|
|||||||
s = xs_str_cat(s, s1);
|
s = xs_str_cat(s, s1);
|
||||||
|
|
||||||
if (local) {
|
if (local) {
|
||||||
xs *bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
|
xs *bio1 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL);
|
||||||
xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio);
|
xs *tags = xs_list_new();
|
||||||
|
xs *bio2 = process_tags(snac, bio1, &tags);
|
||||||
|
xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio2);
|
||||||
|
|
||||||
s = xs_str_cat(s, s1);
|
s = xs_str_cat(s, s1);
|
||||||
}
|
}
|
||||||
|
2
snac.h
2
snac.h
@ -207,6 +207,8 @@ int webfinger_get_handler(xs_dict *req, char *q_path,
|
|||||||
|
|
||||||
const char *default_avatar_base64(void);
|
const char *default_avatar_base64(void);
|
||||||
|
|
||||||
|
xs_str *process_tags(snac *snac, const char *content, xs_list **tag);
|
||||||
|
|
||||||
xs_dict *msg_admiration(snac *snac, char *object, char *type);
|
xs_dict *msg_admiration(snac *snac, char *object, char *type);
|
||||||
xs_dict *msg_create(snac *snac, const xs_dict *object);
|
xs_dict *msg_create(snac *snac, const xs_dict *object);
|
||||||
xs_dict *msg_follow(snac *snac, const char *actor);
|
xs_dict *msg_follow(snac *snac, const char *actor);
|
||||||
|
Loading…
Reference in New Issue
Block a user