# Transfer likes when moving a new topic into an existing one

**URL:** https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234
**Category:** Feature
**Created:** [5월 14, 2016, 11:20오전 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234 "2016-05-14T11:20:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [5월 14, 2016, 11:20오전 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/1 "2016-05-14T11:20:37Z")

</div>

I just noticed that when moving a _topic_ (not a reply) into another topic that already existed, the moved topic will lose its likes. Here’s an actual example of a [topic](https://meta.discourse.org/t/upgrade-everything-at-once/44126) that was [merged into an existing one](https://meta.discourse.org/t/discourse-docker-manager-upgrade-all/33808/6).

This happens because when we merge a topic into another one, we don’t actually _move_ that topic, instead we close it and make a duplicate of it in the other topic.

This inadvertently strips the topic of its likes. Could we:

- migrate the likes from the “moved” topic to the new post, and
- remove the likes from the “moved” topic?

I realise this is more complicated than moving replies, but since moved replies do retain their likes, there’s an unexpected inconsistency here.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [5월 14, 2016, 12:22오후 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/2 "2016-05-14T12:22:34Z")

</div>

FYI, this was noted back in Nov '14, but may have been missed in the noise  
[https://meta.discourse.org/t/moving-the-first-post-to-a-different-topic-doesnt-actually-move-the-post-it-copies-it/15321/19?u=cpradio](https://meta.discourse.org/t/moving-the-first-post-to-a-different-topic-doesnt-actually-move-the-post-it-copies-it/15321/19)

---

<div class="post-metadata">

### Author: ![deivid-rodriguez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deivid-rodriguez/32/121109_2.png) [@deivid-rodriguez](https://meta.discourse.org/u/deivid-rodriguez)
#### Post date: [2월 10, 2017, 4:57오후 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/3 "2017-02-10T16:57:49Z")

</div>

I’ve been working on this today and created a PR: [Copy actions when moving first post by deivid-rodriguez · Pull Request #4701 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4701).

I just now found out that my approach is different from the approach proposed here. Here it is proposed that the likes are moved, I copied them instead.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [4월 6, 2017, 4:26오전 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/4 "2017-04-06T04:26:32Z")

</div>

Hi @deivid-rodriguez, sorry for the late review here. I just merged your PR in

[https://github.com/discourse/discourse/commit/934bff43d9c69820b60879931fd40890f290a59e](https://github.com/discourse/discourse/commit/934bff43d9c69820b60879931fd40890f290a59e)

with some minor tweaks. Thank you for the great work 👍

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [4월 9, 2017, 8:26오전 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/5 "2017-04-09T08:26:33Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [10월 29, 2018, 9:01오전 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/6 "2018-10-29T09:01:52Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 29, 2018, 3:20오후 UTC](https://meta.discourse.org/t/transfer-likes-when-moving-a-new-topic-into-an-existing-one/44234/7 "2018-10-29T15:20:38Z")

</div>

So this is specific to merging two topics? And we are taking about the first post of one topic being merged into another topic, _that_ first post loses its likes in the target topic?
