Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions app/controllers/api/v1/statuses_controller.rb
Original file line number Diff line number Diff line change
@@ -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')

Expand All @@ -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)
Expand Down