From ab6b66f9da5418c247b53e37a24862cb00d0e10d Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Sun, 13 Dec 2020 22:42:45 +0000
Subject: [PATCH] Add deleted topic to help; close #347

---
 Gemfile                     | 2 +-
 db/seeds/posts.yml          | 9 ++++++++-
 db/seeds/posts/deleted.html | 5 +++++
 3 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 db/seeds/posts/deleted.html

diff --git a/Gemfile b/Gemfile
index e1e17280c..5eba0d0af 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,5 +1,5 @@
 source 'https://rubygems.org'
-ruby '~> 2.6'
+ruby '2.6.6'
 
 # Essential gems: servers, adapters, Rails + Rails requirements
 gem 'coffee-rails', '~> 4.2.2'
diff --git a/db/seeds/posts.yml b/db/seeds/posts.yml
index f49d6dc7a..8365a3d3d 100644
--- a/db/seeds/posts.yml
+++ b/db/seeds/posts.yml
@@ -126,4 +126,11 @@
   body_markdown: $FILE posts/voting.html
   body: $FILE posts/voting.html
   doc_slug: voting
-  help_category: Guidance
\ No newline at end of file
+  help_category: Guidance
+
+- post_type_id: <%= HelpDoc.post_type_id %>
+  title: Why are posts deleted?
+  body_markdown: $FILE posts/deleted.html
+  body: $FILE posts/deleted.html
+  doc_slug: deleted
+  help_category: Site Information
\ No newline at end of file
diff --git a/db/seeds/posts/deleted.html b/db/seeds/posts/deleted.html
new file mode 100644
index 000000000..28d3e3e03
--- /dev/null
+++ b/db/seeds/posts/deleted.html
@@ -0,0 +1,5 @@
+<p>Posts are deleted for various reasons. They may be deleted either by community curators or by the original poster.</p>
+<p>A question may be deleted because it is off topic for a particular community or category. That doesn&#39;t mean it&#39;s a bad question, just that it&#39;s not in the right place. For example, a question about musical instruments would likely be removed from a gardening community. Sometimes it&#39;s more subtle; a question about how to make flower pots <em>could</em> be considered gardening, but the community might want to keep posts more focused. Similarly, an opinion based question (What is the prettiest flower?) might not be on topic in some communities. Always check the community description and any linked help before posting to make sure your question will be welcomed! </p>
+<p>An answer may be deleted for similar reasons; it&#39;s off-topic, not answering the question, etc. </p>
+<p>Usually if a post is missing information or needs the author&#39;s attention it&#39;s temporarily put on hold. However, if it&#39;s detracting from the community it may be deleted instead. In these cases it&#39;s best to reach out to the community moderators and start a conversation with them about what needs to happen for the post to be restored. To do so, open a post on the community meta with your question. Remember to be respectful - it can be frustrating to have a post deleted but the moderators will do their best to help you understand how to improve it to fit. </p>
+<p>Finally, sometimes a user will delete their own post(s). This might be due to realizing it wasn&#39;t a good fit for the site, or because they actually meant to ask or answer a different question. </p>
-- 
GitLab