Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1022829
libphutil-googleauthimage.diff
pritambaral (Pritam Baral)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
pritambaral
Dec 12 2015, 2:18 PM
2015-12-12 14:18:36 (UTC+0)
Size
494 B
Referenced Files
None
Subscribers
None
libphutil-googleauthimage.diff
View Options
diff --git a/src/auth/PhutilGoogleAuthAdapter.php b/src/auth/PhutilGoogleAuthAdapter.php
index 338cdc0..448fc09 100644
--- a/src/auth/PhutilGoogleAuthAdapter.php
+++ b/src/auth/PhutilGoogleAuthAdapter.php
@@ -40,7 +40,8 @@ public function getAccountName() {
}
public function getAccountImageURI() {
- return $this->getOAuthAccountData('picture');
+ $image = $this->getOAuthAccountData('image', array());
+ return idx($image, 'url');
}
public function getAccountURI() {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/wt/4j/ntcqvcpdsgmfyg2e
Default Alt Text
libphutil-googleauthimage.diff (494 B)
Attached To
Mode
T9972: Profile image from Google not being picked up
Attached
Detach File
Event Timeline
Log In to Comment