diff options
| author | 2023-05-21 20:32:23 +0200 | |
|---|---|---|
| committer | 2023-05-21 20:32:23 +0200 | |
| commit | 49362f54049a357e52cd6c57d2aa20d33add3307 (patch) | |
| tree | 0417bac6b8157ce7be07be86b7eb6915bb24cdf7 /activitypub.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-49362f54049a357e52cd6c57d2aa20d33add3307.tar.gz snac2-49362f54049a357e52cd6c57d2aa20d33add3307.tar.xz snac2-49362f54049a357e52cd6c57d2aa20d33add3307.zip | |
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) | |||
| 646 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); | 646 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); |
| 647 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); | 647 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); |
| 648 | 648 | ||
| 649 | f_bio = not_really_markdown(xs_dict_get(snac->config, "bio")); | 649 | f_bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); |
| 650 | msg = xs_dict_set(msg, "summary", f_bio); | 650 | msg = xs_dict_set(msg, "summary", f_bio); |
| 651 | 651 | ||
| 652 | char *folders[] = { "inbox", "outbox", "followers", "following", NULL }; | 652 | 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, | |||
| 789 | } | 789 | } |
| 790 | 790 | ||
| 791 | /* format the content */ | 791 | /* format the content */ |
| 792 | fc2 = not_really_markdown(content); | 792 | fc2 = not_really_markdown(content, &atls); |
| 793 | 793 | ||
| 794 | if (in_reply_to != NULL && *in_reply_to) { | 794 | if (in_reply_to != NULL && *in_reply_to) { |
| 795 | xs *p_msg = NULL; | 795 | xs *p_msg = NULL; |