summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-11-23 17:16:31 +0100
committerGravatar default2024-11-23 17:16:31 +0100
commitc88d7e72f0531114e7e000f79ee6ce9a11f23952 (patch)
tree9b2a126ebd869da9e3ee9c52e505728356f69e38 /html.c
parentThe 'metadata' field in user.json is now a string instead of a dict. (diff)
downloadsnac2-c88d7e72f0531114e7e000f79ee6ce9a11f23952.tar.gz
snac2-c88d7e72f0531114e7e000f79ee6ce9a11f23952.tar.xz
snac2-c88d7e72f0531114e7e000f79ee6ce9a11f23952.zip
Minor tweak to new metadata.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 7f7c2c7..df9e4e3 100644
--- a/html.c
+++ b/html.c
@@ -852,7 +852,7 @@ static xs_html *html_user_body(snac *user, int read_only)
852 if (xs_type(md) == XSTYPE_STRING) { 852 if (xs_type(md) == XSTYPE_STRING) {
853 /* convert to dict for easier iteration */ 853 /* convert to dict for easier iteration */
854 metadata = xs_dict_new(); 854 metadata = xs_dict_new();
855 xs *l = xs_split(md, "\r\n"); 855 xs *l = xs_split(md, "\n");
856 const char *ll; 856 const char *ll;
857 857
858 xs_list_foreach(l, ll) { 858 xs_list_foreach(l, ll) {