summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-03-25 16:15:09 +0100
committerGravatar default2024-03-25 16:15:09 +0100
commitadf0a13992edb85738ac983a872937a805629474 (patch)
tree31e084c9ff92a82e2083e8225e703bceeec56981 /activitypub.c
parentEmojis are now read from ~/emojis.json. (diff)
downloadsnac2-adf0a13992edb85738ac983a872937a805629474.tar.gz
snac2-adf0a13992edb85738ac983a872937a805629474.tar.xz
snac2-adf0a13992edb85738ac983a872937a805629474.zip
If an emoji in emojis.json is an URL to an image, it's stored in the tag list.
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 3806353..df78854 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1190,7 +1190,7 @@ xs_dict *msg_actor(snac *snac)
1190 msg = xs_dict_set(msg, "preferredUsername", snac->uid); 1190 msg = xs_dict_set(msg, "preferredUsername", snac->uid);
1191 msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); 1191 msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published"));
1192 1192
1193 xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); 1193 xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, NULL);
1194 f_bio = process_tags(snac, f_bio_2, &tags); 1194 f_bio = process_tags(snac, f_bio_2, &tags);
1195 msg = xs_dict_set(msg, "summary", f_bio); 1195 msg = xs_dict_set(msg, "summary", f_bio);
1196 msg = xs_dict_set(msg, "tag", tags); 1196 msg = xs_dict_set(msg, "tag", tags);
@@ -1398,7 +1398,7 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
1398 } 1398 }
1399 1399
1400 /* format the content */ 1400 /* format the content */
1401 fc2 = not_really_markdown(content, &atls); 1401 fc2 = not_really_markdown(content, &atls, &tag);
1402 1402
1403 if (in_reply_to != NULL && *in_reply_to) { 1403 if (in_reply_to != NULL && *in_reply_to) {
1404 xs *p_msg = NULL; 1404 xs *p_msg = NULL;