Adds TODOs to fix homonym robot.
authorStéphane Jacob <sj@m4x.org>
Mon, 13 Aug 2012 12:27:14 +0000 (14:27 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 26 May 2013 14:25:48 +0000 (16:25 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/admin/homonyms.inc.php
modules/register/register.inc.php

index 8b76fcd..91933c0 100644 (file)
@@ -94,6 +94,7 @@ function fix_homonym(PlUser $user, $email)
                  $email);
 
     $hrmid = User::makeHomonymHrmid($email);
+    // TODO: insert twice into source_other if different domains
     XDB::execute('INSERT INTO  email_source_other (hrmid, email, domain, type, expire)
                        SELECT  {?}, {?}, id, \'homonym\', NOW()
                          FROM  email_virtual_domains
index ca1c823..daacf51 100644 (file)
@@ -200,6 +200,7 @@ function createAliases($subState)
             XDB::execute('INSERT IGNORE INTO  homonyms_list (hrmid, uid)
                                       VALUES  ({?}, {?})',
                          $hrmid, $subState->i('uid'));
+            // TODO: insert into source_other if new domain
         }
 
         $subState->set('forlife', $forlife);