From ff67dbed2b2878ba0d8032bdde08e06bc0eead3e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 11 Jan 2020 02:41:35 -0600 Subject: pass monsterfork api exposure setting to all serializers + add `MONSTERFORK_API_FORCE_*` env vars to set api compatability modes for clients/apps --- app/controllers/api/v1/follows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api/v1/follows_controller.rb') diff --git a/app/controllers/api/v1/follows_controller.rb b/app/controllers/api/v1/follows_controller.rb index 5420c0533..94e377622 100644 --- a/app/controllers/api/v1/follows_controller.rb +++ b/app/controllers/api/v1/follows_controller.rb @@ -16,7 +16,7 @@ class Api::V1::FollowsController < Api::BaseController @account = Account.find_remote!(username, domain) end - render json: @account, serializer: REST::AccountSerializer + render json: @account, serializer: REST::AccountSerializer, monsterfork_api: monsterfork_api end private -- cgit