FIX: Make category change work with shared drafts (PR #11705)

It used to change the category of the topic, instead of the destination category (topic.category_id instead of topic.shared_draft.category_id).

The shared drafts controls were displayed only if the current category matched the ‘shared drafts category’, which was not true for shared drafts that had their categories changed (affected by the previous bug).

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there: