diff --git a/app/models/user.rb b/app/models/user.rb index 8ad8196a..0215d83e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -182,7 +182,7 @@ def flag(flag_type, post, dry_run = false, **opts) post_id: post_id, post_type: post_type[0..-2] }, - verify_peer: false) + verify: false) return false, "[beta] /autoflag/options #{r.code}\n#{r.headers}\n#{r.body}" if r.code != 200 response = JSON.parse(r.body) @@ -233,7 +233,7 @@ def flag(flag_type, post, dry_run = false, **opts) flag_option_id: flag_option_id, comment: comment }, - verify_peer: false) + verify: false) return false, "[beta] /autoflag #{req.code}\n#{req.headers}\n#{req.body}" if req.code != 200 flag_response = JSON.parse(req.body)