Making WordPress.org

Changeset 1189


Ignore:
Timestamp:
01/25/2015 09:30:37 AM (10 years ago)
Author:
nacin
Message:

Slack: Avoid sending to the channel false which ends up being the default channel for the webhook. (Typically #core.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/comment-handler.php

    r1130 r1189  
    1919
    2020        $this->generate_payload();
    21         $this->send->send( $this->trac->get_firehose_channel() );
     21        $firehose = $this->trac->get_firehose_channel();
     22
     23        // We still want to process this payload even if no firehose channel
     24        // is specified, as we may use it to process mentions and such.
     25        if ( $firehose ) {
     26            $this->send->send( $firehose );
     27        }
    2228    }
    2329
Note: See TracChangeset for help on using the changeset viewer.