Skip to content

Commit

Permalink
skip ToHTML() in votes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Dec 27, 2023
1 parent 4d07c98 commit 0f4e693
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion front/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,15 @@ func post(w text.Writer, r *request, inReplyTo *ap.Object, to ap.Audience, cc ap

hash := sha256.Sum256([]byte(postID))

if inReplyTo != nil && inReplyTo.Type != ap.QuestionObject {
content = plain.ToHTML(content)
}

note := ap.Object{
Type: ap.NoteObject,
ID: postID,
AttributedTo: r.User.ID,
Content: plain.ToHTML(content),
Content: content,
Published: now,
To: to,
CC: cc,
Expand Down

0 comments on commit 0f4e693

Please sign in to comment.