Add reactiondeck limit variable and improve sql

This commit is contained in:
KMY 2023-05-27 10:13:18 +09:00
parent 8e794d50b5
commit f93679566b
4 changed files with 13 additions and 4 deletions

View file

@ -65,6 +65,8 @@ class User < ApplicationRecord
# to check their feed
ACTIVE_DURATION = ENV.fetch('USER_ACTIVE_DAYS', 7).to_i.days.freeze
REACTION_DECK_MAX = 256
devise :two_factor_authenticatable,
otp_secret_encryption_key: Rails.configuration.x.otp_secret