1
0
Fork 0

New view for searching tags

This commit is contained in:
Michael 2020-04-27 20:32:25 +00:00
parent 2768ece690
commit f5886db3e2
2 changed files with 16 additions and 1 deletions

View file

@ -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" => [

View file

@ -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"],