]> cat aescling's git repositories - mastodon.git/commit
Add instance-wide setting to disable profile directory (#9497)
authorThibG <thib@sitedethib.com>
Tue, 11 Dec 2018 18:18:29 +0000 (19:18 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 11 Dec 2018 18:18:29 +0000 (19:18 +0100)
commit720daa81435b4c632cdf7b64044cf1ee59af977a
tree17b3bb837d40d102b920120e7c185655cec67aa7
parenta48fe52375f207f538b3be675a943c3dd8603541
Add instance-wide setting to disable profile directory (#9497)

* Add instance-wide setting to disable profile directory

Fixes #9496

When the profile directory is disabled:
- The “discoverable” setting is hidden from users
- The “profile directory” link is not shown on public pages
- /explore returns 404

* Move Setting.profile_directory check to a before_action filter
app/controllers/admin/dashboard_controller.rb
app/controllers/admin/settings_controller.rb
app/controllers/directories_controller.rb
app/models/form/admin_settings.rb
app/views/admin/dashboard/index.html.haml
app/views/admin/settings/edit.html.haml
app/views/layouts/public.html.haml
app/views/settings/profiles/show.html.haml
config/locales/en.yml
config/settings.yml