From 762abd797c611f43ccd12a6c3692f332d9081cad Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman 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 e3553666..6c01d04f 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 }}
{{ .Summary }}{{ end }}
{{.Permalink}}", + "content": "{{.Title}}{{ if .Summary }}
{{ .Summary.replace(/(?:\r\n|\r|\n)/g, '
') }}{{ end }}
{{.Permalink}}", "url": "{{.Permalink}}", "attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}", "to": "https://www.w3.org/ns/activitystreams#Public",