]> git.mxchange.org Git - friendica.git/commitdiff
Remove join profile table
authorSteffen K9 <alfred@skrumbholz.de>
Tue, 4 Feb 2020 06:13:29 +0000 (07:13 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2020 06:13:29 +0000 (07:13 +0100)
Remove join profile table and remove exclude forums

src/Model/User.php

index 0681e13d7e3b0b8dae2315269cdb4d3d77b0b6a5..24daf9a01e5d7cc94bcba43736fc57d4571af250 100644 (file)
@@ -1111,16 +1111,13 @@ class User
 
                $userStmt = DBA::p("SELECT `user`.`uid`, `user`.`login_date`, `contact`.`last-item`
                        FROM `user`
-                       INNER JOIN `profile` ON `profile`.`uid` = `user`.`uid`
                        INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self`
                        WHERE `user`.`verified`
                                AND `user`.`login_date` > ?
-                               AND `user`.`account-type` != ?
                                AND NOT `user`.`blocked`
                                AND NOT `user`.`account_removed`
                                AND NOT `user`.`account_expired`",
-                               DBA::NULL_DATETIME,
-                               self::ACCOUNT_TYPE_COMMUNITY
+                               DBA::NULL_DATETIME
                );
 
                if (!DBA::isResult($userStmt)) {