Skip to content

Instantly share code, notes, and snippets.

@ajya
ajya / diaspora_spam.rb
Last active March 24, 2019 09:58 — forked from jhass/diaspora_spam.rb
Deletes spam comments, posts, likes and local spam accounts & profiles. Place into Diasporas root, edit and run. Don't forget to set necessary environment variables.
#!/usr/bin/env ruby
# List of spam accounts
spam_accounts = %w(spamacc@podA spamacc@podB spamacc@mypod)
# Delete comments even if spammer isn't a local user or spam isn't on a
# local users account.
# And delete posts of users in spam_accounts that aren't local.
always_delete = true