Ver Fonte

Actually get the conditional right, lol

Andy Baugh há 6 anos atrás
pai
commit
d2c241f01e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/Cpanel/iContact/Provider/Slack.pm

+ 1 - 1
lib/Cpanel/iContact/Provider/Slack.pm

@@ -71,7 +71,7 @@ sub send {
     my $dump_hr = {
         'text'        => $subject,
     };
-    $dump_hr->{'attachments'} = [ { "text" => $message } ] if $contact_hr->{'SLACKCOMPACT'};
+    $dump_hr->{'attachments'} = [ { "text" => $message } ] if !$contact_hr->{'SLACKCOMPACT'};
     my $message_json = Cpanel::AdminBin::Serializer::Dump($dump_hr);
 
     # Send it