Browse Source

Remove doubled paragraphs around stream title in AP outbox (#1927)

pull/1934/head
Andreas Nedbal 3 years ago committed by GitHub
parent
commit
fd271b1f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      activitypub/outbox/outbox.go

2
activitypub/outbox/outbox.go

@ -60,7 +60,7 @@ func SendLive() error { @@ -60,7 +60,7 @@ func SendLive() error {
if title := data.GetStreamTitle(); title != "" {
streamTitle = fmt.Sprintf("<p>%s</p>", title)
}
textContent = fmt.Sprintf("<p>%s</p><p>%s</p><p>%s</p><a href=\"%s\">%s</a>", textContent, streamTitle, tagsString, data.GetServerURL(), data.GetServerURL())
textContent = fmt.Sprintf("<p>%s</p>%s<p>%s</p><a href=\"%s\">%s</a>", textContent, streamTitle, tagsString, data.GetServerURL(), data.GetServerURL())
activity, _, note, noteID := createBaseOutboundMessage(textContent)

Loading…
Cancel
Save