]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
authorBrion Vibber <brion@pobox.com>
Sun, 11 Apr 2010 00:56:11 +0000 (17:56 -0700)
committerBrion Vibber <brion@pobox.com>
Sun, 11 Apr 2010 00:56:11 +0000 (17:56 -0700)
Conflicts:
actions/confirmaddress.php

actions/groupmembers.php
actions/peopletag.php
actions/subscribers.php
classes/User.php
lib/deluserqueuehandler.php

index 6d0701239ffd26a56318b3fbc2353e837fbc6da8..54f1d8dcda748e8fb112c6042e9d4a14ac1f0ca7 100644 (file)
@@ -238,9 +238,13 @@ class GroupMemberListItem extends ProfileListItem
 
     function homepageAttributes()
     {
+        $aAttrs = parent::linkAttributes();
+
         if (common_config('nofollow', 'members')) {
             $aAttrs['rel'] = 'nofollow';
         }
+
+        return $aAttrs;
     }
 
     /**
index 5473bc1bdfe855e6971d34bb3a7706cda21e3e45..7287cfbf995aa0bf08d29df44cde7627ff59f87b 100644 (file)
@@ -168,9 +168,13 @@ class PeopleTagListItem extends ProfileListItem
 
     function homepageAttributes()
     {
+        $aAttrs = parent::linkAttributes();
+
         if (common_config('nofollow', 'peopletag')) {
             $aAttrs['rel'] = 'nofollow';
         }
+
+        return $aAttrs;
     }
 }
 
index 6fdf43e2ccdd548855985172773f10e6e7b6a880..2845a498e991a0c7033f83fe002f09fd58e5376a 100644 (file)
@@ -181,8 +181,12 @@ class SubscribersListItem extends SubscriptionListItem
 
     function homepageAttributes()
     {
+        $aAttrs = parent::linkAttributes();
+
         if (common_config('nofollow', 'subscribers')) {
             $aAttrs['rel'] = 'nofollow';
         }
+
+        return $aAttrs;
     }
 }
index 2c256301c2f2d94a1cc36f4b079e9dd71b4352fc..1928a3c62fb1735b1c9ecab9a01595f6064ca191 100644 (file)
@@ -548,7 +548,10 @@ class User extends Memcached_DataObject
             return false;
         }
 
-        Subscription::cancel($other, $this->getProfile());
+        $self = $this->getProfile();
+        if (Subscription::exists($other, $self)) {
+            Subscription::cancel($other, $self);
+        }
 
         $block->query('COMMIT');
 
index 4a1233a5efa2513fb4b6313a147fa6ad95868722..710303938264995a8e77678d8ad3b0cc44b54540 100644 (file)
@@ -49,9 +49,13 @@ class DelUserQueueHandler extends QueueHandler
             return true;
         }
 
-        if (!$user->hasRole(Profile_role::DELETED)) {
-            common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
-            return true;
+        try {
+            if (!$user->hasRole(Profile_role::DELETED)) {
+                common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
+                return true;
+            }
+        } catch (UserNoProfileException $unp) {
+            common_log(LOG_INFO, "Deleting user {$user->nickname} with no profile... probably a good idea!");
         }
 
         $notice = $this->getNextBatch($user);