Browse Source

Minor tweak to new metadata.

default 4 months ago
parent
commit
c88d7e72f0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      activitypub.c
  2. 1 1
      html.c

+ 1 - 1
activitypub.c

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

+ 1 - 1
html.c

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