Changeset 9222 for sites/trunk/common/includes/slack/announce/lib.php
- Timestamp:
- 10/22/2019 04:47:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/announce/lib.php
r9221 r9222 104 104 // Use their Slack Display name, falling back to their WordPress.org login if that's not available. 105 105 $display_name = $user; 106 if ( ! empty( $slack_profiledata[' display_name'] ) ) {107 $display_name = $slack_profiledata[' display_name'];106 if ( ! empty( $slack_profiledata['profile']['display_name'] ) ) { 107 $display_name = $slack_profiledata['profile']['display_name']; 108 108 } 109 109 110 110 $avatar = false; 111 111 // Respect the avatar set in Slack, and prefer it over their Gravatar. 112 if ( ! empty( $slack_profiledata[' image_192'] ) ) {113 $avatar = $slack_profiledata[' image_192'];112 if ( ! empty( $slack_profiledata['profile']['image_192'] ) ) { 113 $avatar = $slack_profiledata['profile']['image_192']; 114 114 } 115 115 $get_avatar = __NAMESPACE__ . '\\' . 'get_avatar';
Note: See TracChangeset
for help on using the changeset viewer.