]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Repeating of posts generated a SQL error
authorMichael <heluecht@pirati.ca>
Wed, 30 Aug 2017 17:55:23 +0000 (17:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 30 Aug 2017 17:55:23 +0000 (17:55 +0000)
include/api.php

index 62e874145ecbf17b6754524929490b1881545895..e7c320e62d74e1cb8af9290d8cf23de2860adc18 100644 (file)
@@ -1818,7 +1818,7 @@ $called_api = null;
                        INNER JOIN `contact` ON `contact`.`id` = `item`.`contact-id` AND `contact`.`uid` = `item`.`uid`
                                AND (NOT `contact`.`blocked` OR `contact`.`pending`)
                        WHERE `item`.`visible` AND NOT `item`.`moderated` AND NOT `item`.`deleted`
-                       AND NOT `item`.`private` AND `item`.`allow_cid` = '' AND `item`.`allow`.`gid` = ''
+                       AND NOT `item`.`private` AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
                        AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = ''
                        $sql_extra
                        AND `item`.`id`=%d",