before_action :authenticate_user!
before_action :check_required_params, only: :new
+ before_action :check_enabled, only: :new
def index
@proofs = AccountIdentityProof.where(account: current_account).order(provider: :asc, provider_username: :asc)
private
+ def check_enabled
+ not_found unless Setting.enable_keybase
+ end
+
def check_required_params
redirect_to settings_identity_proofs_path unless [:provider, :provider_username, :username, :token].all? { |k| params[k].present? }
end
module WellKnown
class KeybaseProofConfigController < ActionController::Base
+ before_action :check_enabled
+
def show
render json: {}, serializer: ProofProvider::Keybase::ConfigSerializer
end
+
+ private
+
+ def check_enabled
+ head 404 unless Setting.enable_keybase
+ end
end
end
custom_css
profile_directory
hide_followers_count
+ enable_keybase
flavour_and_skin
thumbnail
hero
preview_sensitive_media
profile_directory
hide_followers_count
+ enable_keybase
).freeze
UPLOAD_KEYS = %i(
= feature_hint(link_to(t('admin.dashboard.feature_profile_directory'), edit_admin_settings_path), @profile_directory)
%li
= feature_hint(link_to(t('admin.dashboard.feature_timeline_preview'), edit_admin_settings_path), @timeline_preview)
+ %li
+ = feature_hint(link_to(t('admin.dashboard.keybase'), edit_admin_settings_path), @timeline_preview)
%li
= feature_hint(link_to(t('admin.dashboard.feature_relay'), admin_relays_path), @relay_enabled)
.fields-group
= f.input :hide_followers_count, as: :boolean, wrapper: :with_label, label: t('admin.settings.hide_followers_count.title'), hint: t('admin.settings.hide_followers_count.desc_html')
+ .fields-group
+ = f.input :enable_keybase, as: :boolean, wrapper: :with_label, label: t('admin.settings.enable_keybase.title'), hint: t('admin.settings.enable_keybase.desc_html')
+
%hr.spacer/
.fields-group
feature_timeline_preview: Timeline preview
features: Features
hidden_service: Federation with hidden services
+ keybase: Keybase integration
open_reports: open reports
recent_users: Recent users
search: Full-text search
system_font_ui: false
noindex: false
hide_followers_count: false
+ enable_keybase: true
flavour: 'glitch'
skin: 'default'
aggregate_reblogs: true