Minor tweak to new metadata.

This commit is contained in:
default 2024-11-23 17:16:31 +01:00
parent 09d268495c
commit c88d7e72f0
2 changed files with 2 additions and 2 deletions

View file

@ -1226,7 +1226,7 @@ xs_dict *msg_actor(snac *snac)
else else
if (xs_type(md) == XSTYPE_STRING) { if (xs_type(md) == XSTYPE_STRING) {
metadata = xs_dict_new(); metadata = xs_dict_new();
xs *l = xs_split(md, "\r\n"); xs *l = xs_split(md, "\n");
const char *ll; const char *ll;
xs_list_foreach(l, ll) { xs_list_foreach(l, ll) {

2
html.c
View file

@ -852,7 +852,7 @@ static xs_html *html_user_body(snac *user, int read_only)
if (xs_type(md) == XSTYPE_STRING) { if (xs_type(md) == XSTYPE_STRING) {
/* convert to dict for easier iteration */ /* convert to dict for easier iteration */
metadata = xs_dict_new(); metadata = xs_dict_new();
xs *l = xs_split(md, "\r\n"); xs *l = xs_split(md, "\n");
const char *ll; const char *ll;
xs_list_foreach(l, ll) { xs_list_foreach(l, ll) {