diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-26 00:01:22 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-26 00:01:22 +0000 |
commit | 45435a7c033d9c5acf0352bc44408667c5690198 (patch) | |
tree | 3e4f67bc871c841142ad7ce0e12b4a71cef3c8bd /plugins | |
parent | 593885f98c206a3acffdb179feae544e05a50ef2 (diff) |
OStatus: if no <link> available and no profileurl hint passed in, use object id if it's an HTTP(S) URL. Fixes profile link for Google accounts.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OStatus/classes/Ostatus_profile.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index f23017077..86a3c9354 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1160,6 +1160,8 @@ class Ostatus_profile extends Memcached_DataObject $profile->profileurl = $object->link; } else if (array_key_exists('profileurl', $hints)) { $profile->profileurl = $hints['profileurl']; + } else if (Validate::uri($object->id, array('allowed_schemes' => array('http', 'https')))) { + $profile->profileurl = $object->id; } $profile->bio = self::getActivityObjectBio($object, $hints); |