aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-13 08:41:50 +0100
committerdefault <nobody@localhost>2022-11-13 08:41:50 +0100
commit73323a7fc0bf29b0409a34bafc728374fd58bb7a (patch)
tree6db6b653e29d6e8e1fcf1b959926818e6b54a9d3 /activitypub.c
parent88ea9b0839b2d2bf7ee40828a4f68ef3dc880246 (diff)
Some formatting refactoring.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
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);