Fixed Copying posts from a thread triggers rebuild of counters in source thread

Xon

Well-known member
XenForo_Model_Post::_moveOrCopyPosts calls rebuildDiscussion() on all source threads, regardless of if it is a move or copy operation.

This causes copying posts from a massively long thread to take an unexpectedly long time.
 
Regardless of speed, it's still an unnecessary task. There's no need to rebuild thread data for threads that weren't modified (moving makes sense, copying does not).
 
Top Bottom