# Tópicos mesclados não estão mais sendo atualizados

**URL:** https://meta.discourse.org/t/merged-topics-are-no-longer-being-bumped/386078
**Category:** Bug
**Created:** [18 Outubro , 2025 13:10 UTC](https://meta.discourse.org/t/merged-topics-are-no-longer-being-bumped/386078 "2025-10-18T13:10:16Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![christo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christo/32/470948_2.png) [@christo](https://meta.discourse.org/u/christo)
#### Post date: [23 Outubro , 2025 16:18 UTC](https://meta.discourse.org/t/merged-topics-are-no-longer-being-bumped/386078/10 "2025-10-23T16:18:30Z")

</div>

Aqui está o PR para corrigir este problema. Atualizarei novamente assim que for aprovado e mesclado.

> <https://github.com/discourse/discourse/pull/35559>
>
> Fixes a bug I introduced in #35373. Reported on Meta /t/386078
> 
> The intention …there was to make sure that when merging a first post from one topic which is older than the latest post in the destination topic, we shouldn't bump the destination topic. Previous to that, we were bumping the destination topic to the date of the moved post, which sometimes pushed the bumped\_at timestamp back in time.
> 
> Looks like that also broke the case where the moved first post is more recent than the latest post in the destination topic, because the logic for updating the bumped\_at date based on the most recent merged post (in \`update\_last\_post\_stats\`) wasn't considering moved posts which were the first post of their original topic because the \`id\` of that post has changed.
> 
> This should fix both cases. Now if any post moved (including a first post) is newer than the latest post in the destination topic, the destination topic should be bumped. Post timings should still be respected.
> 
> Adds test cases for chronological and sequential moves of first posts which become the newest post in the destination topic, and updates a test to make sure I didn't break post timings.

---

_[View the full topic](https://meta.discourse.org/t/merged-topics-are-no-longer-being-bumped/386078)._
