Item view is working
This commit is contained in:
parent
acb44f82c7
commit
1dd4879197
|
@ -39,83 +39,87 @@
|
||||||
return [
|
return [
|
||||||
"item-view" => [
|
"item-view" => [
|
||||||
"fields" => [
|
"fields" => [
|
||||||
/*
|
"id" => ["item", "id"],
|
||||||
"uid" => ["item", ""],
|
"item_id" => ["item", "id"],
|
||||||
"parent" => ["item", ""],
|
"uid" => ["item", "uid"],
|
||||||
"uri" => ["item", ""],
|
"parent" => ["item", "parent"],
|
||||||
"parent-uri" => ["item", ""],
|
"uri" => ["item", "uri"],
|
||||||
"thr-parent" => ["item", ""],
|
"parent-uri" => ["item", "parent-uri"],
|
||||||
"guid" => ["item", ""],
|
"thr-parent" => ["item", "thr-parent"],
|
||||||
"uri-id" => ["item", ""],
|
"guid" => ["item", "guid"],
|
||||||
"parent-uri-id" => ["item", ""],
|
"uri-id" => ["item", "uri-id"],
|
||||||
"thr-parent-id" => ["item", ""],
|
"parent-uri-id" => ["item", "parent-uri-id"],
|
||||||
"contact-id" => ["item", ""],
|
"thr-parent-id" => ["item", "thr-parent-id"],
|
||||||
"type" => ["item", ""],
|
"contact-id" => ["item", "contact-id"],
|
||||||
"wall" => ["item", ""],
|
"type" => ["item", "type"],
|
||||||
"gravity" => ["item", ""],
|
"wall" => ["item", "wall"],
|
||||||
"extid" => ["item", ""],
|
"gravity" => ["item", "gravity"],
|
||||||
"psid" => ["item", ""],
|
"extid" => ["item", "extid"],
|
||||||
"created" => ["item", ""],
|
"iaid" => ["item", "iaid"],
|
||||||
"edited" => ["item", ""],
|
"icid" => ["item", "icid"],
|
||||||
"commented" => ["item", ""],
|
"psid" => ["item", "psid"],
|
||||||
"received" => ["item", ""],
|
"created" => ["item", "created"],
|
||||||
"changed" => ["item", ""],
|
"edited" => ["item", "edited"],
|
||||||
"verb" => ["", ""],
|
"commented" => ["item", "commented"],
|
||||||
"postopts" => ["", ""],
|
"received" => ["item", "received"],
|
||||||
"plink" => ["", ""],
|
"changed" => ["item", "changed"],
|
||||||
"resource-id" => ["item", ""],
|
"verb" => ["item-content", "verb"],
|
||||||
"event-id" => ["item", ""],
|
"plink" => ["item-content", "plink"],
|
||||||
"attach" => ["item", ""],
|
"language" => ["item-content", "language"],
|
||||||
"inform" => ["", ""],
|
"resource-id" => ["item", "resource-id"],
|
||||||
"file" => ["", ""],
|
"event-id" => ["item", "event-id"],
|
||||||
"allow_cid" => ["", ""],
|
"attach" => ["item", "attach"],
|
||||||
"allow_gid" => ["", ""],
|
"postopts" => ["post-delivery-data", "postopts"],
|
||||||
"deny_cid" => ["", ""],
|
"inform" => ["post-delivery-data", "inform"],
|
||||||
"deny_gid" => ["", ""],
|
"file" => "NULL",
|
||||||
"post-type" => ["item", ""],
|
"allow_cid" => ["permissionset", "allow_cid"],
|
||||||
"private" => ["item", ""],
|
"allow_gid" => ["permissionset", "allow_gid"],
|
||||||
"pubmail" => ["item", ""],
|
"deny_cid" => ["permissionset", "deny_cid"],
|
||||||
"moderated" => ["item", ""],
|
"deny_gid" => ["permissionset", "deny_gid"],
|
||||||
"visible" => ["item", ""],
|
"post-type" => ["item", "post-type"],
|
||||||
"starred" => ["item", ""],
|
"private" => ["item", "private"],
|
||||||
"bookmark" => ["", ""],
|
"pubmail" => ["item", "pubmail"],
|
||||||
"unseen" => ["item", ""],
|
"moderated" => ["item", "moderated"],
|
||||||
"deleted" => ["item", ""],
|
"visible" => ["item", "visible"],
|
||||||
"origin" => ["item", ""],
|
"starred" => ["item", "starred"],
|
||||||
"forum_mode" => ["item", ""],
|
"bookmark" => ["thread", "bookmark"],
|
||||||
"mention" => ["item", ""],
|
"unseen" => ["item", "unseen"],
|
||||||
"global" => ["item", ""],
|
"deleted" => ["item", "deleted"],
|
||||||
"network" => ["item", ""],
|
"origin" => ["item", "origin"],
|
||||||
"title" => ["", ""],
|
"forum_mode" => ["item", "forum_mode"],
|
||||||
"content-warning" => ["", ""],
|
"mention" => ["item", "mention"],
|
||||||
"body" => ["", ""],
|
"global" => ["item", "global"],
|
||||||
"location" => ["", ""],
|
"network" => ["item", "network"],
|
||||||
"coord" => ["", ""],
|
"title" => ["item-content", "title"],
|
||||||
"app" => ["", ""],
|
"content-warning" => ["item-content", "content-warning"],
|
||||||
"rendered-hash" => ["", ""],
|
"body" => ["item-content", "body"],
|
||||||
"rendered-html" => ["", ""],
|
"location" => ["item-content", "location"],
|
||||||
"object-type" => ["", ""],
|
"coord" => ["item-content", "coord"],
|
||||||
"object" => ["", ""],
|
"app" => ["item-content", "app"],
|
||||||
"target-type" => ["", ""],
|
"rendered-hash" => ["item-content", "rendered-hash"],
|
||||||
"target" => ["", ""],
|
"rendered-html" => ["item-content", "rendered-html"],
|
||||||
"author-id" => ["item", ""],
|
"object-type" => ["item-content", "object-type"],
|
||||||
"author-link" => ["author", ""],
|
"object" => ["item-content", "object"],
|
||||||
"author-name" => ["author", ""],
|
"target-type" => ["item-content", "target-type"],
|
||||||
"author-avatar" => ["author", ""],
|
"target" => ["item-content", "target"],
|
||||||
"author-network" => ["author", ""],
|
"author-id" => ["item", "author-id"],
|
||||||
"owner-id" => ["item", ""],
|
"author-link" => ["author", "url"],
|
||||||
"owner-link" => ["owner", ""],
|
"author-name" => ["author", "name"],
|
||||||
"owner-name" => ["owner", ""],
|
"author-avatar" => ["author", "thumb"],
|
||||||
"owner-avatar" => ["owner", ""]
|
"author-network" => ["author", "network"],
|
||||||
*/
|
"owner-id" => ["item", "owner-id"],
|
||||||
"uri-id" => ["post-category", "uri-id"],
|
"owner-link" => ["owner", "url"],
|
||||||
"uid" => ["post-category", "uid"],
|
"owner-addr" => ["owner", "addr"],
|
||||||
"uri" => ["item-uri", "uri"],
|
"owner-avatar" => ["owner", "thumb"],
|
||||||
"guid" => ["item-uri", "guid"],
|
"owner-nick" => ["owner", "nick"],
|
||||||
"type" => ["post-category", "type"],
|
"owner-name" => ["owner", "name"],
|
||||||
"tid" => ["post-category", "tid"],
|
"owner-network" => ["owner", "network"],
|
||||||
"name" => ["tag", "name"],
|
"contact-uid" => ["contact", "uid"],
|
||||||
"url" => ["tag", "url"],
|
"parent-guid" => ["parent-item", "guid"],
|
||||||
|
"parent-network" => ["parent-item", "network"],
|
||||||
|
"signed_text" => ["diaspora-interaction", "interaction"],
|
||||||
|
"signature" => "NULL",
|
||||||
|
"signer" => "NULL"
|
||||||
],
|
],
|
||||||
"query" => "FROM `item`
|
"query" => "FROM `item`
|
||||||
LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||||
|
@ -124,8 +128,10 @@ return [
|
||||||
LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `item`.`uri-id`
|
LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `item`.`uri-id`
|
||||||
LEFT JOIN `item-activity` ON `item-activity`.`uri-id` = `item`.`uri-id`
|
LEFT JOIN `item-activity` ON `item-activity`.`uri-id` = `item`.`uri-id`
|
||||||
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
||||||
LEFT JOIN `item-delivery-data` ON `item-delivery-data`.`iid` = `item`.`id`
|
LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin`
|
||||||
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`"
|
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
||||||
|
LEFT JOIN `thread` ON `thread`.`iid` = `item`.`parent`
|
||||||
|
STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent`"
|
||||||
],
|
],
|
||||||
"category-view" => [
|
"category-view" => [
|
||||||
"fields" => [
|
"fields" => [
|
||||||
|
|
Loading…
Reference in a new issue