FIX: Don't include yourself in the expanded group

FIX: Don’t include yourself in the expanded group

diff --git a/plugin.rb b/plugin.rb
index f231a20..a8916d0 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -42,7 +42,9 @@ after_initialize do
     # Expand any groups
     group_names = (@manager_params.delete(:target_group_names) || '').split(',')
     Group.where(name: group_names).includes(group_users: :user).each do |g|
-      g.group_users.each { |gu| usernames << gu.user.username }
+      g.group_users.each do |gu|
+        usernames << gu.user.username unless gu.user_id == current_user.id
+      end
     end
 
     if usernames.size < 2
diff --git a/spec/jobs/bcc_post_spec.rb b/spec/jobs/bcc_post_spec.rb
index 7e493ef..c7ddcf2 100644
--- a/spec/jobs/bcc_post_spec.rb
+++ b/spec/jobs/bcc_post_spec.rb
@@ -7,12 +7,12 @@ describe ::Jobs::BccPost do
   fab!(:user1) { Fabricate(:user) }
 
   let(:create_params) do
-    HashWithIndifferentAccess.new({
+    HashWithIndifferentAccess.new(
       "raw" => "this is the content I want to send",
       "title" => "this is the title of the PM I want to send",
       "archetype" => Archetype.private_message,
       target_usernames: "#{user0.username},#{user1.username}"
-    })
+    )
   end
 
   it "does nothing when disabled" do
diff --git a/spec/requests/post_controller_spec.rb b/spec/requests/post_controller_spec.rb
index 10a9354..829b95d 100644
--- a/spec/requests/post_controller_spec.rb
+++ b/spec/requests/post_controller_spec.rb
@@ -73,6 +73,7 @@ describe PostsController do
       user1 = Fabricate(:user)
       user2 = Fabricate(:user)
 
+      GroupUser.create(group: group, user: moderator)
       GroupUser.create(group: group, user: user0)
       GroupUser.create(group: group, user: user1)
 

GitHub sha: 80095731