1 # frozen_string_literal: true
3 class DashboardsController < ApplicationController
6 before_action :authorize_web
7 before_action :set_locale
8 before_action :update_totp
10 authorize_resource :class => false
12 before_action :check_database_readable
15 @followings = current_user.followings
16 @nearby_users = current_user.nearby - @followings