Making WordPress.org

Changeset 10264


Ignore:
Timestamp:
09/16/2020 04:26:25 AM (5 years ago)
Author:
dd32
Message:

Slack: Disable link_names by default.

This probably isn't as useful today as it once was, as Slack usernames and WordPress.org usernames have diverged.

This should also prevent at-group from pinging the workspace.

Fixes #5402

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/send.php

    r9228 r10264  
    1818    protected $text = '';
    1919    protected $attachments = array();
     20    protected $link_names = 0;
    2021
    2122    function __construct( $webhook ) {
     
    6970    }
    7071
     72    function set_link_names( $bool = false ) {
     73        $this->link_names = (int) $bool;
     74    }
     75
    7176    function get_payload() {
    7277        $icon = $this->get_icon();
     
    7782            'username'    => $this->get_username(),
    7883            'attachments' => $this->get_attachments(),
    79             'link_names'  => 1,
     84            'link_names'  => $this->link_names,
    8085        );
    8186
Note: See TracChangeset for help on using the changeset viewer.