From a19e41100034ee80fb7c5b955227b8741c0626fe Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 Jan 2021 09:13:18 +0000 Subject: [PATCH] User-Item is not needed --- database.sql | 5 ----- static/dbview.config.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/database.sql b/database.sql index fdcc1ffe1..47d76fdf6 100644 --- a/database.sql +++ b/database.sql @@ -1601,10 +1601,6 @@ CREATE VIEW `post-view` AS SELECT IF (`item`.`psid` IS NULL, '', `permissionset`.`allow_gid`) AS `allow_gid`, IF (`item`.`psid` IS NULL, '', `permissionset`.`deny_cid`) AS `deny_cid`, IF (`item`.`psid` IS NULL, '', `permissionset`.`deny_gid`) AS `deny_gid`, - `user-item`.`pinned` AS `pinned`, - `user-item`.`hidden` AS `hidden`, - `user-item`.`ignored` AS `ignored`, - `user-item`.`notification-type` AS `notification-type`, `item`.`event-id` AS `event-id`, `event`.`created` AS `event-created`, `event`.`edited` AS `event-edited`, @@ -1635,7 +1631,6 @@ CREATE VIEW `post-view` AS SELECT LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id` LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin` LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid` - LEFT JOIN `user-item` ON `user-item`.`iid` = `item`.`id` STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent` STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`; diff --git a/static/dbview.config.php b/static/dbview.config.php index b9b373a8b..63f5de822 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -147,10 +147,6 @@ return [ "allow_gid" => "IF (`item`.`psid` IS NULL, '', `permissionset`.`allow_gid`)", "deny_cid" => "IF (`item`.`psid` IS NULL, '', `permissionset`.`deny_cid`)", "deny_gid" => "IF (`item`.`psid` IS NULL, '', `permissionset`.`deny_gid`)", - "pinned" => ["user-item", "pinned"], - "hidden" => ["user-item", "hidden"], - "ignored" => ["user-item", "ignored"], - "notification-type" => ["user-item", "notification-type"], "event-id" => ["item", "event-id"], "event-created" => ["event", "created"], "event-edited" => ["event", "edited"], @@ -182,7 +178,6 @@ return [ LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id` LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin` LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid` - LEFT JOIN `user-item` ON `user-item`.`iid` = `item`.`id` STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent` STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`" ],