1
0
Fork 0

New view for searching tags

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

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