# カテゴリは最上位親ですか？

**URL:** https://meta.discourse.org/t/category-isgrandparent/137127
**Category:** Development
**Created:** [2019 年 12 月 26 日午後 9:42 UTC](https://meta.discourse.org/t/category-isgrandparent/137127 "2019-12-26T21:42:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rogerco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerco/32/161338_2.png) [@rogerco](https://meta.discourse.org/u/rogerco)
#### Post date: [2019 年 12 月 26 日午後 9:42 UTC](https://meta.discourse.org/t/category-isgrandparent/137127/1 "2019-12-26T21:42:51Z")

</div>

サブカテゴリのサブカテゴリは認められていないようです（残念ですが、仕方ありません）

しかし、別のものを調べている最中に、discourse/app/assets/javascripts/discourse/models/category.js.es6 の 68 行目に isGrandparent() という関数があるのを偶然見つけました。

これは、1 つ以上のサブカテゴリが独自のサブカテゴリを持っている場合に true を返すことを意図しているようです。

これは、ネストされたサブカテゴリが現在開発中であり、まもなく実装されることを意味しているのでしょうか？それとも、私の理解が誤っているのでしょうか？

---

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [2019 年 12 月 27 日午前 3:37 UTC](https://meta.discourse.org/t/category-isgrandparent/137127/2 "2019-12-27T03:37:46Z")

</div>

進行中：

> [@Nesting categories in three levels](https://meta.discourse.org/t/nesting-categories-in-three-levels/110657/14):
>
> We’re actively working on this at the moment. It will likely be available in the early new year.
