From 762abd797c611f43ccd12a6c3692f332d9081cad Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Mon, 9 Oct 2023 12:47:15 -0400
Subject: [PATCH] replacing new lines in summary with html line breaks for
 outbox

---
 layouts/index.activity_outbox.ajson | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/index.activity_outbox.ajson b/layouts/index.activity_outbox.ajson
index e3553666d..6c01d04ff 100644
--- a/layouts/index.activity_outbox.ajson
+++ b/layouts/index.activity_outbox.ajson
@@ -28,7 +28,7 @@
       "object": {
         "id": "{{ .Permalink }}",
         "type": "Note",
-        "content": "{{.Title}}{{ if .Summary }}<br>{{ .Summary }}{{ end }}<br><a href='{{.Permalink}}'>{{.Permalink}}</a>",
+        "content": "{{.Title}}{{ if .Summary }}<br>{{ .Summary.replace(/(?:\r\n|\r|\n)/g, '<br>') }}{{ end }}<br><a href='{{.Permalink}}'>{{.Permalink}}</a>",
         "url": "{{.Permalink}}",
         "attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}",
         "to": "https://www.w3.org/ns/activitystreams#Public",
-- 
GitLab