diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:52:31 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:52:31 -0600 |
commit | d32f0c7bcfc3b14cde451dd11b522698550df327 (patch) | |
tree | bb390b1ba02f19ef5668ffe3ae8d95193c849165 /app/controllers | |
parent | 3b1bf5b4959b8bf31a31117659c53a8881d59686 (diff) |
use basic monsterfork api for anonymous clients
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/base_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index ddadfd486..9e2efc938 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -102,7 +102,7 @@ class Api::BaseController < ApplicationController private def _monsterfork_api - return :full if current_user.nil? + return :basic if current_user.nil? return current_user.monsterfork_api.to_sym unless doorkeeper_token && doorkeeper_token.application.present? app = doorkeeper_token.application.name.downcase.strip.gsub(/ +/, '_').gsub(/[^\w.-]/, '') return :vanilla if ENV.fetch('MONSTERFORK_API_FORCE_VANILLA', '').downcase.split.include?(app) |