diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 5fea9fc1..79741c8b 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -1,7 +1,5 @@ module Api::V1 class StatusesController < ApiController - before_action :whitelist_domains - def boost_post @api_base_url = ENV.fetch('MASTODON_INSTANCE_URL') @@ -21,15 +19,6 @@ def boost_post private - def whitelist_domains - allowed_domains = ["mo-me.social"] - - Rails.logger.info("#{'>'*10}Request host: #{request.host} #{'<'*10}") - # unless allowed_domains.include?(request.host) - # render_error("Request domain not allowed", :forbidden) - # end - end - def fetch_oauth_token(username, user_domain) user_domain = nil if user_domain == 'channel.org' admin = Account.find_by(username: username, domain: user_domain)