Purge category, leave 1 post
-
Hello. I will explain what happens with our nodebb installation.
I was purge a whole category. This still one post remain, but that post is invisible, or no existent. Searching in mongo db for category ID (20 in my case), and deleted these documents:
db.objects.remove({_key:"category:20"}); db.objects.remove({_key:"categories:cid", value: "20"});
After remove, home page remain showing one inexistent category:
This is the html output:
<li component="categories/category" data-cid="" data-numrecentreplies="1" class="row clearfix"> <meta itemprop="name" content=""> <div class="content col-xs-12 col-md-7 col-sm-9"> <div class="icon pull-left" style=""> <i class="fa fa-fw "></i> </div> <h2 class="title"> <a href="/category/" itemprop="url"> </a> </h2> <div> </div> <span class="visible-xs pull-right"> </span> </div> <div class="col-md-1 hidden-sm hidden-xs stats"> <span class=" human-readable-number" title=""></span><br> <small>Topics</small> </div> <div class="col-md-1 hidden-sm hidden-xs stats"> <span class=" human-readable-number" title=""></span><br> <small>Posts</small> </div> <div class="col-md-3 col-sm-3 teaser hidden-xs" component="topic/teaser"> <div class="card" style="border-color: "> <div component="category/posts"> <div class="post-content"> No new posts. </div> </div> </div> </div> </li>
NodeBB 1.9.3
Any help would be appreciated. Thank you
Copyright © 2023 NodeBB | Contributors