mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-17 07:48:21 +01:00
replacing new lines in summary with html line breaks for outbox
This commit is contained in:
parent
74708eb40c
commit
762abd797c
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue