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); diff --git a/html.c b/html.c index f49274e..80b7f43 100644 --- a/html.c +++ b/html.c @@ -194,7 +194,10 @@ d_char *html_user_header(snac *snac, d_char *s, int local) s1 = xs_fmt("%s\n", snac->actor, L("admin")); else - s1 = xs_fmt("%s\n", snac->actor, L("public")); + s1 = xs_fmt( + "%s - %s\n", + snac->actor, L("public"), + snac->actor, L("people")); s = xs_str_cat(s, s1); } @@ -817,6 +820,116 @@ d_char *html_timeline(snac *snac, char *list, int local) } +d_char *html_people(snac *snac) +{ + d_char *s = xs_str_new(NULL); + xs *wers = NULL; + xs *wing = NULL; + char *p, *v; + + s = html_user_header(snac, s, 0); + + s = xs_str_cat(s, "
")) + s = xs_str_cat(s, sc); + else { + xs *s1 = xs_fmt("
%s
", sc); + s = xs_str_cat(s, s1); + } + + s = xs_str_cat(s, "