diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 10 |
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); |