Skip to content

Instantly share code, notes, and snippets.

@kramerc
Created December 22, 2023 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kramerc/320b0fcf3bab412339e283191304d15b to your computer and use it in GitHub Desktop.
Save kramerc/320b0fcf3bab412339e283191304d15b to your computer and use it in GitHub Desktop.
Unfollow all hashtags on Mastodon
account_id = User.find_by(email: 'REPLACE@example.com').account.id
TagFollow.where(account_id: account_id).each { |follow| follow.destroy!; TagUnmergeWorker.perform_async(follow.tag.id, account_id) }; nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment