mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
stopforumspamworker: hash not methods
This commit is contained in:
parent
6008e2be4e
commit
6d237600fd
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ class StopForumSpamWorker
|
||||||
|
|
||||||
def perform(opts)
|
def perform(opts)
|
||||||
txn = Minfraud::Components::Report::Transaction.new(
|
txn = Minfraud::Components::Report::Transaction.new(
|
||||||
ip_address: opts.ip,
|
ip_address: opts[:ip],
|
||||||
tag: :spam_or_abuse,
|
tag: :spam_or_abuse,
|
||||||
# The following key/values are not mandatory but are encouraged
|
# The following key/values are not mandatory but are encouraged
|
||||||
maxmind_id: $config['minfraud_account_id'],
|
maxmind_id: $config['minfraud_account_id'],
|
||||||
|
@ -20,9 +20,9 @@ class StopForumSpamWorker
|
||||||
|
|
||||||
res = HTTP.post 'https://stopforumspam.com/add', form: {
|
res = HTTP.post 'https://stopforumspam.com/add', form: {
|
||||||
api_key: $config['stop_forum_spam_api_key'],
|
api_key: $config['stop_forum_spam_api_key'],
|
||||||
username: opts.username,
|
username: opts[:username],
|
||||||
email: opts.email,
|
email: opts[:email],
|
||||||
ip: opts.ip
|
ip: opts[:ip]
|
||||||
}
|
}
|
||||||
puts res.inspect
|
puts res.inspect
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue