diff options
| author | default <nobody@localhost> | 2022-11-02 10:13:14 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2022-11-02 10:13:14 +0100 |
| commit | 1fd14a850dd1100429fd38023666b6d53fb6c9af (patch) | |
| tree | d58b0adaca5e537eb1845e799e818995e2b5df52 /activitypub.c | |
| parent | 2fd5f6fc617623e5cdb8016707843e2950d8a42d (diff) | |
People page started.
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 if (rcpts == NULL) to = xs_list_new(); - else - to = xs_dup(rcpts); + else { + if (xs_type(rcpts) == XSTYPE_STRING) { + to = xs_list_new(); + to = xs_list_append(to, rcpts); + } + else + to = xs_dup(rcpts); + } /* format the content */ not_really_markdown(content, &fc2); |