# Arquivo XML do Sitemap não pode mostrar tópico e posts completos

**URL:** <https://meta.discourse.org/t/sitemap-xml-file-can-not-show-full-topic-and-posts/291430>\
**Category:** Product Support\
**Tags:** sitemap\
**Created:** [Janeiro 12, 2024, 1:46pm UTC](https://meta.discourse.org/t/sitemap-xml-file-can-not-show-full-topic-and-posts/291430 "2024-01-12T13:46:40Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [Janeiro 13, 2024, 2:30pm UTC](https://meta.discourse.org/t/sitemap-xml-file-can-not-show-full-topic-and-posts/291430/9 "2024-01-13T14:30:52Z")

</div>

Além disso, a consulta no OP extrairia todas as MPs e tópicos excluídos também.

Eu acho que precisaria ser mais como:

```sql
SELECT 
    COUNT(*)
FROM topics t
  JOIN categories c ON c.id = t.category_id
WHERE c.read_restricted IS FALSE 
  AND t.archetype = 'regular'
  AND t.deleted_at IS NULL

```

---

_[View the full topic](https://meta.discourse.org/t/sitemap-xml-file-can-not-show-full-topic-and-posts/291430)._
