]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Fix for not being able to delete items
[friendica.git] / mod / notes.php
index 3b46df07da000ba02c2b4c1c35d1547fcc8981c1..96a28260893ea67651825bcd251b829224921c9b 100644 (file)
@@ -33,7 +33,6 @@ function notes_content(App $a, $update = false)
 
        require_once 'include/security.php';
        require_once 'include/conversation.php';
-       require_once 'include/acl_selectors.php';
        $groups = [];
 
 
@@ -83,7 +82,7 @@ function notes_content(App $a, $update = false)
                WHERE %s AND `item`.`uid` = %d AND `item`.`type` = 'note'
                AND `contact`.`self` AND `item`.`id` = `item`.`parent` AND NOT `item`.`wall`
                $sql_extra ",
-               item_joins(),
+               item_joins(local_user()),
                item_condition(),
                intval(local_user())
        );
@@ -98,7 +97,7 @@ function notes_content(App $a, $update = false)
                AND `item`.`id` = `item`.`parent` AND NOT `item`.`wall`
                $sql_extra
                ORDER BY `item`.`created` DESC LIMIT %d ,%d ",
-               item_joins(),
+               item_joins(local_user()),
                item_condition(),
                intval(local_user()),
                intval($a->pager['start']),
@@ -120,7 +119,7 @@ function notes_content(App $a, $update = false)
                        $sql_extra
                        ORDER BY `parent` DESC, `gravity` ASC, `item`.`id` ASC ",
                        item_fieldlists(),
-                       item_joins(),
+                       item_joins(local_user()),
                        item_condition(),
                        intval(local_user()),
                        dbesc($parents_str)