The discussion addresses an issue where moving a topic (not a reply) into an existing one causes the moved topic to lose its likes, due to the system closing the original topic and duplicating it instead of truly moving it. erlend_sh proposes migrating likes from the original topic to the new post while removing them from the original, noting the inconsistency since moved replies retain their likes. cpradio references a prior observation of this issue from November 2014. deivid-rodriguez submitted a PR implementing a solution by copying likes rather than moving them, which tgxworld later merged with minor adjustments. codinghorror seeks clarification, confirming the issue applies specifically to merging topics and concerns the first post’s likes being lost in the target topic. The resolution involves preserving likes during topic merges, though the implementation copies rather than migrates them.
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 that was merged into an existing one.
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.
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.
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?