Changeset 8068
- Timestamp:
- 01/11/2019 02:03:57 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/announce/lib.php
r7666 r8068 84 84 } 85 85 86 if ( $data['command'] === '/committers' ) { 87 // This command seems to not be used actively, in preference for the slack @committers group pings. 88 $committers = get_committers(); 89 if ( ! in_array( $user, $committers, true ) ) { 90 return; 91 } 92 93 // TODO: Note that pinging users by `@username` is deprecated, and we now have WordPress.org usernames in the above list. 94 // This should be upadted to ping users by the `<@U.....>` format. 95 96 $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) ); 97 } elseif ( $data['command'] === '/deputies' ) { 86 if ( $data['command'] === '/deputies' ) { 98 87 $pingable_deputies = get_pingable_wordcamp_deputies(); 99 88
Note: See TracChangeset
for help on using the changeset viewer.