From: Michael Date: Mon, 27 Apr 2020 20:32:25 +0000 (+0000) Subject: New view for searching tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5886db3e2fe82437587ab88bb66f9961241bc50;p=friendica.git New view for searching tags --- diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 50055f62ae..8b4d1528c6 100755 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -51,7 +51,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1340); + define('DB_UPDATE_VERSION', 1341); } return [ @@ -754,6 +754,7 @@ return [ "icid" => ["icid"], "iaid" => ["iaid"], "psid_wall" => ["psid", "wall"], + "uri-id" => ["uri-id"], ] ], "item-activity" => [ diff --git a/static/dbview.config.php b/static/dbview.config.php index 1d95261a25..47654dfb2b 100755 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -221,6 +221,20 @@ return [ INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid` INNER JOIN `user` ON `register`.`uid` = `user`.`uid`" ], + "tag-search-view" => [ + "fields" => [ + "uri-id" => ["post-tag", "uri-id"], + "uri" => ["item", "uri"], + "guid" => ["item", "guid"], + "uid" => ["item", "uid"], + "private" => ["item", "private"], + "name" => ["tag", "name"], + ], + "query" => "FROM `post-tag` + INNER JOIN `tag` ON `tag`.`id` = `post-tag`.`tid` + INNER JOIN `item` ON `item`.`uri-id` = `post-tag`.`uri-id` + WHERE `post-tag`.`type` = 1" + ], "workerqueue-view" => [ "fields" => [ "pid" => ["process", "pid"],