Duplicating an entire topic

I know it has been asked/discussed before. I believe my use case is legitimate, but perhaps not wide spread enough to mandate devs implementing a new feature, so I’m hoping for the next best suggestion from experts here … happy with the Rails console too if someone points me to the functions and calls I should use.

We are a team of people with various levels of trust. Some post in restricted categories. We need to write a guide for newcomers, and part of the guide would include an example of a full topic from one of those restricted forums (and I know this sounds conflicting), chosen from the topics that we can afford the lower trust level members to see. However, I don’t want to move the topic from its original category, but duplicate it. I want the post revisions too. Manually creating replies and copying over the contents of each post + changing ownership would be the next best solution, but I’d quite like to have the post revisions too.

As an admin, can I change the author of a post to any specific user using the GUI?

If I wanted to do it in the Rails console, could a kind soul indicate which functions and calls to use to copy a topic’s posts as a set of replies to an existing topic?

Yes. Admin wrench > Change ownership.

I wonder if creating topics is possible with a TC :thinking:.

1 like

Darn, I just came back to delete that part of the post after just seeing the Change Ownership command.

For the record, I’m interested in copying the revisions of each post as well (clarified now in the OP above), basically a full copy. Manually creating new posts and copy/pasting contents would lose the revisions (but it would be the next best thing if i can’t duplicate it otherwise)

What’s TC? I know I created new topics in the past via the API, though I’m not trying to create a new topic here, but duplicate all posts (with revisions) as replies to an existing topic.

A Theme Component.

I don’t think that’s possible then. Perhaps this should be in Feature.

I mean the split/merge topic functionality would fundamentally be the same, just that the old topic would not be deleted … that’s really all i’d need :slight_smile:

Anyone proficient with Rails for Discourse to point me to the functions and calls to duplicate a post from one topic to another topic?

1 like