From f5db4d91d59aff1ac8103c46f9cd8b52af0269f6 Mon Sep 17 00:00:00 2001 From: Jonas Gaffke Date: Wed, 20 Mar 2024 15:21:28 +0100 Subject: [PATCH] list all pads and ignore tags --- src/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.php b/src/index.php index f529f5d..35f73cb 100644 --- a/src/index.php +++ b/src/index.php @@ -30,7 +30,7 @@ die(); } -$query = 'SELECT "Notes".title, "Notes"."updatedAt", "Notes"."shortid", "Users".profile FROM "Notes" JOIN "Users" ON "Notes"."ownerId" = "Users".id WHERE (permission = \'freely\' OR permission = \'editable\' OR permission = \'limited\') AND strpos(content, \'tags: listed\')>0 ORDER BY "Notes"."updatedAt" DESC'; +$query = 'SELECT "Notes".title, "Notes"."updatedAt", "Notes"."shortid", "Users".profile FROM "Notes" JOIN "Users" ON "Notes"."ownerId" = "Users".id WHERE (permission = \'freely\' OR permission = \'editable\' OR permission = \'limited\') ORDER BY "Notes"."updatedAt" DESC'; try { $stmt = $dbh->query($query); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);