summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-11-02 10:13:14 +0100
committerGravatar default2022-11-02 10:13:14 +0100
commit1fd14a850dd1100429fd38023666b6d53fb6c9af (patch)
treed58b0adaca5e537eb1845e799e818995e2b5df52 /activitypub.c
parentSplit html_actor_icon() from html_msg_icon(). (diff)
downloadsnac2-1fd14a850dd1100429fd38023666b6d53fb6c9af.tar.gz
snac2-1fd14a850dd1100429fd38023666b6d53fb6c9af.tar.xz
snac2-1fd14a850dd1100429fd38023666b6d53fb6c9af.zip
People page started.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index f3c7093..164c6e6 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -530,8 +530,14 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
530 530
531 if (rcpts == NULL) 531 if (rcpts == NULL)
532 to = xs_list_new(); 532 to = xs_list_new();
533 else 533 else {
534 to = xs_dup(rcpts); 534 if (xs_type(rcpts) == XSTYPE_STRING) {
535 to = xs_list_new();
536 to = xs_list_append(to, rcpts);
537 }
538 else
539 to = xs_dup(rcpts);
540 }
535 541
536 /* format the content */ 542 /* format the content */
537 not_really_markdown(content, &fc2); 543 not_really_markdown(content, &fc2);