Changeset 7663 for sites/trunk/common/includes/slack/announce/lib.php
- Timestamp:
- 09/12/2018 05:15:50 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/announce/lib.php
r7662 r7663 85 85 86 86 if ( $data['command'] === '/committers' ) { 87 // This command seems to not be used actively, in preference for the slack @committers group pings. 87 88 $committers = get_committers(); 88 89 if ( ! in_array( $user, $committers, true ) ) { … … 90 91 } 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 92 96 $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) ); 93 97 } elseif ( $data['command'] === '/deputies' ) { 94 // This is not all deputies; it's only the ones who want to receive `/deputies` pings 95 $pingable_deputies = array( 96 '00sleepy', '_dorsvenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos', 97 'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke', 98 'karenalma', 'kcristiano', 'kdrewien', 'kenshino', 'mayukojpn', 'mikelking', 'miss_jwo', 99 'remediosgraphic', 'savione', 'vc27', 'yaycheryl', 100 ); 101 $pingable_deputies = array( 'coreymckrill', 'iandunn' ); // todo remove after testing 98 $pingable_deputies = get_pingable_worcamp_deputies(); 102 99 103 100 if ( ! in_array( $user, $pingable_deputies, true ) ) { 104 101 return; 105 102 } 103 104 // TODO: Note that pinging users by `@username` is deprecated, and we have WordPress.org usernames in the above list. 105 // This should be upadted to ping users by the `<@U.....>` format. 106 106 107 107 $text = sprintf( "*/deputies:* %s\n_(CC: %s)_", $data['text'], '@' . implode( ', @', $pingable_deputies ) );
Note: See TracChangeset
for help on using the changeset viewer.