]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: if no <link> available and no profileurl hint passed in, use object id if...
authorBrion Vibber <brion@pobox.com>
Fri, 26 Feb 2010 00:01:22 +0000 (00:01 +0000)
committerBrion Vibber <brion@pobox.com>
Fri, 26 Feb 2010 00:01:22 +0000 (00:01 +0000)
plugins/OStatus/classes/Ostatus_profile.php

index f2301707764f14c970c13302dfde69a7e8a0594d..86a3c9354a9d33110ee119a27d7ab9e8b76258bd 100644 (file)
@@ -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);