remove tradition from old user too
tla [Mon, 9 Feb 2015 12:22:29 +0000 (13:22 +0100)]
persistence/lib/Text/Tradition/Directory.pm

index 451fbf4..c57115b 100644 (file)
@@ -582,9 +582,10 @@ sub _find_gplus {
         });
 
     foreach my $t (@{ $user->traditions }) {
+               $user->remove_tradition($t);
         $new_user->add_tradition($t);
     }
-    $self->update(@{ $user->traditions });
+    $self->update($user);
     $self->update($new_user);
 
     # $self->delete_user({ username => $user->id });