diff --git a/database.sql b/database.sql index 4179932ad..692b5deb7 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2021.12-rc (Siberian Iris) --- DB_UPDATE_VERSION 1448 +-- DB_UPDATE_VERSION 1449 -- ------------------------------------------ @@ -1614,7 +1614,7 @@ CREATE VIEW `post-user-view` AS SELECT `post-content`.`title` AS `title`, `post-content`.`content-warning` AS `content-warning`, `post-content`.`raw-body` AS `raw-body`, - `post-content`.`body` AS `body`, + IFNULL (`post-content`.`body`, '') AS `body`, `post-content`.`rendered-hash` AS `rendered-hash`, `post-content`.`rendered-html` AS `rendered-html`, `post-content`.`language` AS `language`, diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index ca52dace8..39481348e 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -55,7 +55,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1448); + define('DB_UPDATE_VERSION', 1449); } return [ diff --git a/static/dbview.config.php b/static/dbview.config.php index 9939e894d..4188c7726 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -101,7 +101,7 @@ "title" => ["post-content", "title"], "content-warning" => ["post-content", "content-warning"], "raw-body" => ["post-content", "raw-body"], - "body" => ["post-content", "body"], + "body" => "IFNULL (`post-content`.`body`, '')", "rendered-hash" => ["post-content", "rendered-hash"], "rendered-html" => ["post-content", "rendered-html"], "language" => ["post-content", "language"],