Content warning: Und hier ist ein neuer #Zlax zum blocken. * atommjack@diaspora.psyco.fr #Trollwiese #Deppenparade
Content warning: Und wieder ein #Zlax Profil zum Blocken und löschen: * florida_ted@pod.automat.click Wo findet man eigentlich die Kontaktadresse des Pod-Admins bei #Diaspora ? #Trollwiese #Deppenparade
Famous spam removal script for Hubzilla which came in handy since mad Ivan Zlax started terrorizing the Fediverse.git.c-r-t.tk
# Load diaspora environment
ENV["RAILS_ENV"] ||= "production"
require_relative "config/environment"
for toxic in [ 'vm666@diaspora.ruhrmail.de', 'ivan_exlax@pod.dapor.net ', 'zlax@%', 'zlaxyizlax@%' ] do
puts "Blocking and cleaning #{toxic}"
local_spammers, remote_spammers = Person.where("diaspora_handle LIKE ?", toxic).where(closed_account: false).partition(&:local?)
# Retract all comments of local spammers and close their accounts
local_spammers.each do |spammer|
Comment.where(author_id: spammer.id).each do |comment|
puts "delete #{comment.guid} from post #{comment.parent.guid}"
spammer.owner.retract(comment)
end
spammer.owner.close_account!
end
# Retract all spam comments on posts of local users and delete the rest
Comment.where(author_id: remote_spammers.map(&:id)).each do |comment|
puts "delete #{comment.guid} from post #{comment.parent.guid}"
post_author = comment.parent.author
if post_author.local?
post_author.owner.retract(comment)
else
comment.destroy
end
end
# Close accounts of remote users if wanted
remote_spammers.each do |spammer|
puts "close account #{spammer.diaspora_handle}"
#AccountDeleter.new(spammer.diaspora_handle).perform!
spammer.update_column(:serialized_public_key, "BLOCKED")
puts "closed account #{spammer.diaspora_handle}"
end
end
"Nazi" is a smear word, invented by Jews to denigrate Adolf #Hitler's political party. Like "Goy". That's why I don't think of myself as a Nazi, but if I am called a Nazi by a Jew or a Shabbos, then I wear this slur with pride.Kein Widerspruch von Zlax, der das offensichtlich OK findet.
#!/usr/bin/env ruby
# Load diaspora environment
ENV["RAILS_ENV"] ||= "production"
require_relative "config/environment"
toxic_accounts = Person.find_by_substring('ivan zlax')
toxic_list = toxic_accounts.map { |z| z.diaspora_handle }
toxic_list.append('vm66%@diaspora.ruhrmail.de', 'ivan_exlax@pod.dapor.net ', 'zlax@%', 'zlaxyizlax@%')
puts toxic_list.inspect
#exit
for toxic in toxic_list do
puts "Blocking and cleaning #{toxic}"
local_spammers, remote_spammers = Person.where("diaspora_handle LIKE ?", toxic).where(closed_account: false).partition(&:local?)
# Retract all comments of local spammers and close their accounts
local_spammers.each do |spammer|
Comment.where(author_id: spammer.id).each do |comment|
puts "delete #{comment.guid} from post #{comment.parent.guid}"
spammer.owner.retract(comment)
end
spammer.owner.close_account!
end
# Retract all spam comments on posts of local users and delete the rest
Comment.where(author_id: remote_spammers.map(&:id)).each do |comment|
puts "delete #{comment.guid} from post #{comment.parent.guid}"
post_author = comment.parent.author
if post_author.local?
post_author.owner.retract(comment)
else
comment.destroy
end
end
# Close accounts of remote users if wanted
remote_spammers.each do |spammer|
puts "close account #{spammer.diaspora_handle}"
#AccountDeleter.new(spammer.diaspora_handle).perform!
spammer.update_column(:serialized_public_key, "BLOCKED")
puts "closed account #{spammer.diaspora_handle}"
end
end