Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add close reason as a comment #863

Closed
wants to merge 1 commit into from

Conversation

MoshiKoi
Copy link
Member

Working on #215

Right now, it just puts "Closed as " in the history, which technically works but could be improved. For instance, it doesn't add in the link for close reasons that need a link. This is because the comment is technically the same as the comments for edits, which makes it easy to just patch in like this without extra work, but also limits formatting options since it's just plaintext.

Closed as unclear in post history

A more sophisticated solution might be to add in "close reason" and "target link" fields to the post_histories schema, and do some logic (switch on post_history_type_id) to format closures differently from other history events.

@MoshiKoi MoshiKoi closed this Oct 9, 2022
@MoshiKoi MoshiKoi deleted the close-reason-history branch June 27, 2023 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant