Skip to content

Instantly share code, notes, and snippets.

@nightpool nightpool/hotwife.rb Secret
Last active Jun 15, 2019

What would you like to do?
get rid of the spammers (once you've added a patch to prevent them from coming back, i hope!)
# find recent statuses linking to
spam_statuses = Status.where("id > 102230000000000000").where("text ilike '%'").includes(:account)
# filter out accounts that have any local followers (almost certainly false positives)
spam_accounts = { |i| i.followers.local.count == 0 }
# double check their usernames to make sure
# (you can replace :acct with :uri if you want to look at their profiles)
# when you're ready, run the next line below (commented so people don't run it on accident)
# spam_accounts.each { |i| Admin::SuspensionWorker.perform_async( }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.