diff options
author | default <nobody@localhost> | 2023-05-21 20:32:23 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-21 20:32:23 +0200 |
commit | 49362f54049a357e52cd6c57d2aa20d33add3307 (patch) | |
tree | 0417bac6b8157ce7be07be86b7eb6915bb24cdf7 /activitypub.c | |
parent | 3cd73311bece7783bbcc3774f5fd54c520eb88ed (diff) |
Convert image links in notes to attachments.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 18ed25c..406aee8 100644 --- a/activitypub.c +++ b/activitypub.c @@ -646,7 +646,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")); - f_bio = not_really_markdown(xs_dict_get(snac->config, "bio")); + f_bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); msg = xs_dict_set(msg, "summary", f_bio); char *folders[] = { "inbox", "outbox", "followers", "following", NULL }; @@ -789,7 +789,7 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, } /* format the content */ - fc2 = not_really_markdown(content); + fc2 = not_really_markdown(content, &atls); if (in_reply_to != NULL && *in_reply_to) { xs *p_msg = NULL; |