Skip to content

Commit

Permalink
fix bad logic in 0f4e693
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Dec 30, 2023
1 parent a2d4cae commit 35a9bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ 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 {
if inReplyTo == nil || inReplyTo.Type != ap.QuestionObject {
content = plain.ToHTML(content)
}

Expand Down

0 comments on commit 35a9bc6

Please sign in to comment.