{"id":401,"date":"2018-09-19T16:03:50","date_gmt":"2018-09-19T16:03:50","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=401"},"modified":"2018-11-14T21:12:28","modified_gmt":"2018-11-14T21:12:28","slug":"adult-rooms","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/adult-rooms\/","title":{"rendered":"adult rooms"},"content":{"rendered":"<h3>New feature: you can now assign rooms as adult room<\/h3>\n<p>When a new user enters an adult room, you can choose 3 actions.<\/p>\n<p>These actions are defined in <a href=\"https:\/\/html5-chat.com\/chatadmin\/security.php\">the security panel<\/a><\/p>\n<p>You can :<\/p>\n<ul>\n<li>do nothing<\/li>\n<li>Warn an user it is adult<\/li>\n<li>Hide the room if user is minor of 18<\/li>\n<\/ul>\n<p>The case &#8220;Hide the room if user is minor of 18&#8221;, implies you know the age of the user. We added the &#8220;age&#8221; on the registration panel.<\/p>\n<p>If you use JWT to inject your data, then you can use that extra field:<\/p>\n<pre><strong>birthyear<\/strong><\/pre>\n<p>to add the year of birth of the user<\/p>\n<p>ex:\u00a0<strong>birthyear:1995<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>You can also use<\/p>\n<pre>seenByAdultOnly<\/pre>\n<p>that means that this member will be seen only by adults (if <strong>seenByAdultOnly<\/strong>=1)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New feature: you can now assign rooms as adult room When a new user enters an adult room, you can choose 3 actions. These actions are defined in the security panel You can : do nothing Warn an user it is adult Hide the room if user is minor of 18 The case &#8220;Hide the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[73],"class_list":["post-401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","tag-adult"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=401"}],"version-history":[{"count":2,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions\/461"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/402"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}