mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +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)
|
||||
txn = Minfraud::Components::Report::Transaction.new(
|
||||
ip_address: opts.ip,
|
||||
ip_address: opts[:ip],
|
||||
tag: :spam_or_abuse,
|
||||
# The following key/values are not mandatory but are encouraged
|
||||
maxmind_id: $config['minfraud_account_id'],
|
||||
|
@ -20,9 +20,9 @@ class StopForumSpamWorker
|
|||
|
||||
res = HTTP.post 'https://stopforumspam.com/add', form: {
|
||||
api_key: $config['stop_forum_spam_api_key'],
|
||||
username: opts.username,
|
||||
email: opts.email,
|
||||
ip: opts.ip
|
||||
username: opts[:username],
|
||||
email: opts[:email],
|
||||
ip: opts[:ip]
|
||||
}
|
||||
puts res.inspect
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue