aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-11-23 17:16:31 +0100
committerdefault <nobody@localhost>2024-11-23 17:16:31 +0100
commitc88d7e72f0531114e7e000f79ee6ce9a11f23952 (patch)
tree9b2a126ebd869da9e3ee9c52e505728356f69e38
parent09d268495c12d3c00a7293fbf445830bcc9d74c3 (diff)
Minor tweak to new metadata.
-rw-r--r--activitypub.c2
-rw-r--r--html.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 8c0c423..8bcb6b0 100644
--- a/activitypub.c
+++ b/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) {
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)
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) {