From 30dbd850e3431bc202cecc70ce5d36aecfded739 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 10 Feb 2023 16:11:55 -0500 Subject: [PATCH] Remove references to marks table in label routines --- lib/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Database.php b/lib/Database.php index 4a35a6e3..97c851c3 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -2210,9 +2210,9 @@ class Database { label, sum(hidden) as hidden, sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked - from arsse_marks - join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription - join arsse_label_members on arsse_label_members.article = arsse_marks.article + from arsse_articles + join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription + join arsse_label_members on arsse_label_members.article = arsse_articles.id where arsse_subscriptions.owner = ? group by label ) as mark_stats on mark_stats.label = arsse_labels.id @@ -2274,9 +2274,9 @@ class Database { label, sum(hidden) as hidden, sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked - from arsse_marks - join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription - join arsse_label_members on arsse_label_members.article = arsse_marks.article + from arsse_articles + join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription + join arsse_label_members on arsse_label_members.article = arsse_articles.id where arsse_subscriptions.owner = ? group by label ) as mark_stats on mark_stats.label = arsse_labels.id