]> git.mxchange.org Git - friendica.git/commitdiff
New view for searching tags
authorMichael <heluecht@pirati.ca>
Mon, 27 Apr 2020 20:32:25 +0000 (20:32 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 27 Apr 2020 20:32:25 +0000 (20:32 +0000)
static/dbstructure.config.php
static/dbview.config.php

index 50055f62aed87081b6455c2b90e72e15752e645d..8b4d1528c6ae585317ddc527280498bd15907916 100755 (executable)
@@ -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" => [
index 1d95261a2544c478d915bda446968f240b29130e..47654dfb2bfbd4bee6a7424d749a9a37dbc5c7a3 100755 (executable)
@@ -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"],