diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:41:35 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:41:35 -0600 |
commit | ff67dbed2b2878ba0d8032bdde08e06bc0eead3e (patch) | |
tree | 805919a162596e67dc8803f9db7892eefc289ea4 /app/controllers/api/v1/timelines/home_controller.rb | |
parent | d9a9a18afae94ec0a2160e746265e47d7b639eaf (diff) |
pass monsterfork api exposure setting to all serializers + add `MONSTERFORK_API_FORCE_*` env vars to set api compatability modes for clients/apps
Diffstat (limited to 'app/controllers/api/v1/timelines/home_controller.rb')
-rw-r--r-- | app/controllers/api/v1/timelines/home_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/timelines/home_controller.rb b/app/controllers/api/v1/timelines/home_controller.rb index 589bc3486..81a42cb06 100644 --- a/app/controllers/api/v1/timelines/home_controller.rb +++ b/app/controllers/api/v1/timelines/home_controller.rb @@ -13,6 +13,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController render json: @statuses, each_serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id), + monsterfork_api: monsterfork_api, status: regeneration_in_progress? ? 206 : 200 end |