Email replies land as embedded replies, not answers

AI-generated summary

A discussion on email replies in Q&A topics revealed that replies from emails are being embedded under the question as comments, instead of being posted as answers. Chandra initially reported this issue, which was then replicated by JammyDodger. These embedded replies are undeletable and uneditable through the UI and are not visible on mobile. JammyDodger suggested that email-in is getting mixed up with the Q&A format. A fix was proposed in a commit on GitHub by vinothkannans, which was tested and confirmed to be working by JammyDodger and potentially by Chandra (no confirmation).

Continuing the discussion from Discourse Post Voting:

Email replies to Q&A topic land on the topic as comments instead of answers.


Edit: There seem to be three types of replies that are possible:

  1. Answers - can edit, delete
  2. Comments - can edit, delete
  3. Answers that act like comments and show indented under the question - can’t edit, can’t delete, can’t see on mobile. These seem to be coming from email responses.
3 Likes

I can replicate this.

Replying to a notification from a Q&A style topic by email inserts the post as an embedded reply rather than a post within the topic:

This is then undeletable/uneditable through the UI.

3 Likes

These ones shouldn’t exist. :slight_smile: I think the email-in is getting muddled with the Q&A format.

1 Like

https://github.com/discourse/discourse-post-voting/commit/5ea4dccfb7e1b289d1efb20827f14a2ce42944ac

The above commit should fix this issue. @Chandra can you please test it and let me know?

5 Likes

Seems like it’s working fine for me. :partying_face:

3 Likes