diff --git a/activitypub.c b/activitypub.c index ccb21c8..6314314 100644 --- a/activitypub.c +++ b/activitypub.c @@ -409,7 +409,7 @@ d_char *msg_actor(snac *snac) msg = xs_dict_set(msg, "preferredUsername", snac->uid); msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); - not_really_markdown(xs_dict_get(snac->config, "bio"), &f_bio); + f_bio = not_really_markdown(xs_dict_get(snac->config, "bio")); msg = xs_dict_set(msg, "summary", f_bio); char *folders[] = { "inbox", "outbox", "followers", "following", NULL }; @@ -548,7 +548,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char } /* format the content */ - not_really_markdown(content, &fc2); + fc2 = not_really_markdown(content); /* extract the tags */ process_tags(fc2, &fc1, &tag); diff --git a/format.c b/format.c index 93080fe..13f0840 100644 --- a/format.c +++ b/format.c @@ -34,7 +34,7 @@ struct { }; -d_char *not_really_markdown(char *content, d_char **f_content) +d_char *not_really_markdown(char *content) /* formats a content using some Markdown rules */ { d_char *s = NULL; @@ -149,9 +149,7 @@ d_char *not_really_markdown(char *content, d_char **f_content) s = xs_replace_i(s, smileys[n].key, smileys[n].value); } - *f_content = s; - - return *f_content; + return s; } diff --git a/html.c b/html.c index f7c2b2f..2d4f3a4 100644 --- a/html.c +++ b/html.c @@ -215,7 +215,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local) "