From: Brion Vibber Date: Fri, 26 Feb 2010 00:01:22 +0000 (+0000) Subject: OStatus: if no available and no profileurl hint passed in, use object id if... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45435a7c033d9c5acf0352bc44408667c5690198;p=quix0rs-gnu-social.git OStatus: if no available and no profileurl hint passed in, use object id if it's an HTTP(S) URL. Fixes profile link for Google accounts. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index f230170776..86a3c9354a 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);