FIX: edit reason should be an array

FIX: edit reason should be an array

previously this was text when it should be an array, leading to edit reason of “nil”.

why this is an array, I am not sure.

diff --git a/app/models/shared_edit_revision.rb b/app/models/shared_edit_revision.rb
index adb4da8..13a1163 100644
--- a/app/models/shared_edit_revision.rb
+++ b/app/models/shared_edit_revision.rb
@@ -128,7 +128,7 @@ class SharedEditRevision < ActiveRecord::Base
         new_reason = I18n.t("shared_edits.reason", users: usernames.join(", "))
 
         if new_reason != reason
-          last_post_revision.modifications["edit_reason"] = new_reason
+          last_post_revision.modifications["edit_reason"] = [nil, new_reason]
           last_post_revision.save!
           post.update!(edit_reason: new_reason)
         end
diff --git a/spec/models/shared_edit_revision_spec.rb b/spec/models/shared_edit_revision_spec.rb
index ef24f01..0e80c13 100644
--- a/spec/models/shared_edit_revision_spec.rb
+++ b/spec/models/shared_edit_revision_spec.rb
@@ -82,7 +82,7 @@ describe SharedEditRevision do
 
     rev = post.revisions.order(:number).first
 
-    reason = rev.modifications["edit_reason"].to_s
+    reason = rev.modifications["edit_reason"][1].to_s
     expect(reason).to include(user1.username)
     expect(reason).to include(user2.username)
     expect(reason).not_to include("d,")

GitHub sha: e181d344