Add Mastodon service page

This commit is contained in:
Râu Cao
2023-08-10 14:52:03 +02:00
parent e4242333d9
commit 3c1fe3396d
13 changed files with 1456 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
class Services::MastodonController < Services::BaseController
before_action :authenticate_user!
before_action :require_service_available
def show
@service_enabled = current_user.services_enabled.include?(:mastodon)
end
private
def require_service_available
http_status :not_found unless Setting.ejabberd_enabled?
end
end