# Os marcadores não são removidos mesmo que o tópico/post seja movido para uma categoria privada/PM

**URL:** https://meta.discourse.org/t/bookmarks-are-not-removed-even-if-the-topic-post-is-moved-to-a-pm-private-category/284062
**Category:** Bug
**Tags:** bookmarks
**Created:** [1 Novembro , 2023 00:52 UTC](https://meta.discourse.org/t/bookmarks-are-not-removed-even-if-the-topic-post-is-moved-to-a-pm-private-category/284062 "2023-11-01T00:52:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HamMan2118](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hamman2118/32/383565_2.png) [@HamMan2118](https://meta.discourse.org/u/HamMan2118)
#### Post date: [1 Novembro , 2023 00:52 UTC](https://meta.discourse.org/t/bookmarks-are-not-removed-even-if-the-topic-post-is-moved-to-a-pm-private-category/284062/1 "2023-11-01T00:52:56Z")

</div>

Olá, olá!

Encontrei um bug interessante hoje. Marquei um tópico que presumivelmente foi movido para um PM ou uma categoria privada de Staff. Eu esperava que, como o tópico foi movido para uma área à qual não tenho acesso, o marcador fosse removido. Em vez disso, o marcador permaneceu e me notificou, e o nome do tópico também foi alterado para o que foi alterado quando eu não tinha acesso. Veja as imagens abaixo.

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/0/3/d031756b61aa7f81d656bf663a16d3bd4595c791.png)  
O tópico original, chamado “Please fix the caravan”, estava em uma categoria pública, mas presumivelmente foi movido para um PM. O título foi alterado para “RE: Please fix the caravan”.

E ao clicar nele…

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/8/f/18ffc9f04d4acb8534b9774fedd52e288169224b.jpeg)

uma mensagem de erro é exibida.

Ele também não aparece em “u/`user`/activity/bookmarks”.

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/f/c/dfccb4d8b0661713d3aa367700c99514ebad3d45.png)

Portanto, seria possível que, se um usuário marcar um tópico e o tópico marcado for movido para uma área privada, o marcador seja removido completamente? ~~O marcador agora não pode ser removido.~~ EDIT: Clicar em “Dismiss” remove o marcador.

Obrigado!

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [1 Novembro , 2023 08:42 UTC](https://meta.discourse.org/t/bookmarks-are-not-removed-even-if-the-topic-post-is-moved-to-a-pm-private-category/284062/2 "2023-11-01T08:42:33Z")

</div>

Espero que a remoção automática não aconteça. Lembro-me de ter coisas marcadas e começo a procurá-las lá. E se eu não encontrar, ficarei muito, muito confuso.

Manter favoritos que não funcionam é inútil, no entanto. Portanto, se tal favorito for excluído, devo ser informado sobre isso. Mas e se houver algum motivo administrativo para movê-los, esse tópico/post pode voltar, mas eu não tenho mais esse favorito. E mover para PM e mover para categorias privadas são dois casos muito diferentes — e se eu fizer parte desses casos, por que haveria necessidade de apagar meu favorito.

Portanto, esta não é uma questão tão simplificada assim. E eu não vejo isso como um bug. Mais ou menos uma questão de como o Discourse está funcionando.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [8 Abril , 2024 05:44 UTC](https://meta.discourse.org/t/bookmarks-are-not-removed-even-if-the-topic-post-is-moved-to-a-pm-private-category/284062/4 "2024-04-08T05:44:02Z")

</div>

Acho que o problema de notificação foi corrigido em

> <https://github.com/discourse/discourse/commit/3c5fb871c0f54af47679ae71ad449666b01d8216>
>
> There is an edge case where the following occurs:
> 
> 1. The user sets a bookmark r…eminder on a post/topic
> 2. The post/topic is changed to a PM before or after the reminder
> fires, and the notification remains unread by the user
> 3. The user opens their bookmark reminder notification list
> and they can still see the notification even though they cannot
> access the topic anymore
> 
> There is a very low chance for information leaking here, since
> the only thing that could be exposed is the topic title if it
> changes to something sensitive.
> 
> This commit filters the bookmark unread notifications by using
> the bookmarkable can\_see? methods and also prevents sending
> reminder notifications for bookmarks the user can no longer see.
