FIX: Skip validation when updating close posts

FIX: Skip validation when updating close posts

diff --git a/lib/discourse_code_review/github_pr_syncer.rb b/lib/discourse_code_review/github_pr_syncer.rb
index 6e0111b..ce2dc67 100644
--- a/lib/discourse_code_review/github_pr_syncer.rb
+++ b/lib/discourse_code_review/github_pr_syncer.rb
@@ -116,6 +116,7 @@ module DiscourseCodeReview
           last_post = get_last_post
 
           last_post.created_at = created_at
+          last_post.skip_validation = true
           last_post.save!
 
           last_post.custom_fields[GITHUB_NODE_ID] = github_id

GitHub sha: 5e0f5d43

1 Like

We might want a test for that :wink: