diff --git a/database.sql b/database.sql index 65da2f7cff..226c151335 100644 --- a/database.sql +++ b/database.sql @@ -1560,6 +1560,9 @@ CREATE VIEW `post-view` AS SELECT `contact`.`thumb` AS `contact-avatar`, `contact`.`network` AS `contact-network`, `contact`.`blocked` AS `contact-blocked`, + `contact`.`readonly` AS `contact-readonly`, + `contact`.`pending` AS `contact-pending`, + `contact`.`rel` AS `contact-rel`, `contact`.`uid` AS `contact-uid`, IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`) AS `writable`, `contact`.`self` AS `self`, diff --git a/static/dbview.config.php b/static/dbview.config.php index 9dc7791f73..b0bf7ed615 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -36,7 +36,7 @@ * */ -return [ + return [ "post-view" => [ "fields" => [ "id" => ["item", "id"], @@ -106,6 +106,9 @@ return [ "contact-avatar" => ["contact", "thumb"], "contact-network" => ["contact", "network"], "contact-blocked" => ["contact", "blocked"], + "contact-readonly" => ["contact", "readonly"], + "contact-pending" => ["contact", "pending"], + "contact-rel" => ["contact", "rel"], "contact-uid" => ["contact", "uid"], "writable" => "IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`)", "self" => ["contact", "self"],