Is there a way to merge accounts?

AI 生成的摘要

The discussion revolves around merging user accounts on Discourse. SethL asks about changing or merging a Twitter account with a local one. Overmind notes there’s no built-in feature yet, referencing a related meta topic. Purldator shares a script via a gist that may help, which thangngoc89 later confirms they’ve used successfully. Dax mentions a rake task for merging users, with a link to the relevant meta post. Codinghorror adds that merging can now be done via the UI, though caution is advised for large accounts. Rickyfarguson asks about badges and achievements, and JammyDodger confirms that badges, site settings, and stats are transferred during the merge.

I have a discuorse forum, or rather I am staff of one and I have a Twitter account I no longer use as my login method. Is there a way to change the Twitter account, or merge the account with another, maybe local account?

https://meta.discourse.org/t/ability-to-merge-users/9220

Nothing yet that I see, would be good to be able to at least bulk change ownership of posts / topics like mentioned in that topic. So far there isn’t an easy way to do this that I see.

This gist might be something that will help with what you want to achieve.

Can you show me how to use that script

I am in the same situation as you. :weary_face: :sweat_smile:
I will be watching that gist to see if the author replies.

Now I know how to use that script. Just copy it to app/lib
Open rails console and type the last line of that gist (change username)

Yes, we have a rake task now

现在也可以通过用户界面完成此操作。

:warning: 将大型账户与其他大型账户合并可能会消耗大量的数据库和服务器时间。但如果是合并两个小型账户,或将一个大型账户与一个小型账户合并,则通常不会出现问题。

在合并用户账户时,徽章和成就也会一并转移吗?还是只会转移帖子、点赞和消息?

我刚刚合并了几个测试用户,徽章、站点设置、统计信息等已从一个用户复制到另一个用户。:+1:

谢谢!我成功地为一名用户合并了两个账户,徽章也已转移,这是一个很棒的功能。