]> git.mxchange.org Git - friendica.git/blobdiff - static/dbview.config.php
API: We can now display polls
[friendica.git] / static / dbview.config.php
index f0a421484c18cc5238f965db1f18f066e9dfd3a6..82ccaa9d1259c12eaf92647c9bf1ee232b3ed0d7 100644 (file)
@@ -86,7 +86,6 @@
                        "pubmail" => ["post-thread-user", "pubmail"],
                        "visible" => ["post-user", "visible"],
                        "starred" => ["post-thread-user", "starred"],
-                       "pinned" => ["post-thread-user", "pinned"],
                        "unseen" => ["post-user", "unseen"],
                        "deleted" => ["post-user", "deleted"],
                        "origin" => ["post-user", "origin"],
                        "event-type" => ["event", "type"],
                        "event-nofinish" => ["event", "nofinish"],
                        "event-ignore" => ["event", "ignore"],
+                       "question-id" => ["post-question", "id"],
+                       "question-multiple" => ["post-question", "multiple"],
+                       "question-voters" => ["post-question", "voters"],
+                       "question-end-time" => ["post-question", "end-time"],
                        "signed_text" => ["diaspora-interaction", "interaction"],
                        "parent-guid" => ["parent-item-uri", "guid"],
                        "parent-network" => ["parent-post", "network"],
                        LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `post-user`.`uri-id`
                        LEFT JOIN `post-content` ON `post-content`.`uri-id` = `post-user`.`uri-id`
                        LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `post-user`.`uri-id` AND `post-user`.`origin`
+                       LEFT JOIN `post-question` ON `post-question`.`uri-id` = `post-user`.`uri-id`
                        LEFT JOIN `permissionset` ON `permissionset`.`id` = `post-user`.`psid`
                        LEFT JOIN `post-user` AS `parent-post` ON `parent-post`.`uri-id` = `post-user`.`parent-uri-id` AND `parent-post`.`uid` = `post-user`.`uid`
                        LEFT JOIN `contact` AS `parent-post-author` ON `parent-post-author`.`id` = `parent-post`.`author-id`"
                        "ignored" => ["post-thread-user", "ignored"],
                        "visible" => ["post-user", "visible"],
                        "starred" => ["post-thread-user", "starred"],
-                       "pinned" => ["post-thread-user", "pinned"],
                        "unseen" => ["post-thread-user", "unseen"],
                        "deleted" => ["post-user", "deleted"],
                        "origin" => ["post-thread-user", "origin"],
                        "event-type" => ["event", "type"],
                        "event-nofinish" => ["event", "nofinish"],
                        "event-ignore" => ["event", "ignore"],
+                       "question-id" => ["post-question", "id"],
+                       "question-multiple" => ["post-question", "multiple"],
+                       "question-voters" => ["post-question", "voters"],
+                       "question-end-time" => ["post-question", "end-time"],
                        "signed_text" => ["diaspora-interaction", "interaction"],
                        "parent-guid" => ["parent-item-uri", "guid"],
                        "parent-network" => ["parent-post", "network"],
                        LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `post-thread-user`.`uri-id`
                        LEFT JOIN `post-content` ON `post-content`.`uri-id` = `post-thread-user`.`uri-id`
                        LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `post-thread-user`.`uri-id` AND `post-thread-user`.`origin`
+                       LEFT JOIN `post-question` ON `post-question`.`uri-id` = `post-thread-user`.`uri-id`
                        LEFT JOIN `permissionset` ON `permissionset`.`id` = `post-thread-user`.`psid`
                        LEFT JOIN `post-user` AS `parent-post` ON `parent-post`.`uri-id` = `post-user`.`parent-uri-id` AND `parent-post`.`uid` = `post-thread-user`.`uid`
                        LEFT JOIN `contact` AS `parent-post-author` ON `parent-post-author`.`id` = `parent-post`.`author-id`"
                        "causer-blocked" => ["causer", "blocked"],
                        "causer-hidden" => ["causer", "hidden"],
                        "causer-contact-type" => ["causer", "contact-type"],
+                       "question-id" => ["post-question", "id"],
+                       "question-multiple" => ["post-question", "multiple"],
+                       "question-voters" => ["post-question", "voters"],
+                       "question-end-time" => ["post-question", "end-time"],
                        "signed_text" => ["diaspora-interaction", "interaction"],
                        "parent-guid" => ["parent-item-uri", "guid"],
                        "parent-network" => ["parent-post", "network"],
                        LEFT JOIN `verb` ON `verb`.`id` = `post`.`vid`
                        LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `post`.`uri-id`
                        LEFT JOIN `post-content` ON `post-content`.`uri-id` = `post`.`uri-id`
+                       LEFT JOIN `post-question` ON `post-question`.`uri-id` = `post`.`uri-id`
                        LEFT JOIN `post` AS `parent-post` ON `parent-post`.`uri-id` = `post`.`parent-uri-id`
                        LEFT JOIN `contact` AS `parent-post-author` ON `parent-post-author`.`id` = `parent-post`.`author-id`"
        ],
                        "causer-blocked" => ["causer", "blocked"],
                        "causer-hidden" => ["causer", "hidden"],
                        "causer-contact-type" => ["causer", "contact-type"],
+                       "question-id" => ["post-question", "id"],
+                       "question-multiple" => ["post-question", "multiple"],
+                       "question-voters" => ["post-question", "voters"],
+                       "question-end-time" => ["post-question", "end-time"],
                        "signed_text" => ["diaspora-interaction", "interaction"],
                        "parent-guid" => ["parent-item-uri", "guid"],
                        "parent-network" => ["parent-post", "network"],
                        LEFT JOIN `verb` ON `verb`.`id` = `post`.`vid`
                        LEFT JOIN `diaspora-interaction` ON `diaspora-interaction`.`uri-id` = `post-thread`.`uri-id`
                        LEFT JOIN `post-content` ON `post-content`.`uri-id` = `post-thread`.`uri-id`
+                       LEFT JOIN `post-question` ON `post-question`.`uri-id` = `post-thread`.`uri-id`
                        LEFT JOIN `post` AS `parent-post` ON `parent-post`.`uri-id` = `post`.`parent-uri-id`
                        LEFT JOIN `contact` AS `parent-post-author` ON `parent-post-author`.`id` = `parent-post`.`author-id`"
        ],
                "query" => "FROM `post-category`
                        LEFT JOIN `tag` ON `post-category`.`tid` = `tag`.`id`"
        ],
+       "collection-view" => [
+               "fields" => [
+                       "uri-id" => ["post-collection", "uri-id"],
+                       "type" => ["post-collection", "type"],
+                       "cid" => ["post", "author-id"],
+                       "received" => ["post", "received"],
+                       "created" => ["post", "created"],
+               ],
+               "query" => "FROM `post-collection`
+                       INNER JOIN `post` ON `post-collection`.`uri-id` = `post`.`uri-id`"
+       ],
        "tag-view" => [
                "fields" => [
                        "uri-id" => ["post-tag", "uri-id"],