Fix: 環境変数でスタンプの最大数を指定した場合、スタンプつけるときにエラーになる問題 (#289)
This commit is contained in:
parent
f06f9565ca
commit
eda8dae5a7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class EmojiReaction < ApplicationRecord
|
|||
include Paginable
|
||||
|
||||
EMOJI_REACTION_LIMIT = 32_767
|
||||
EMOJI_REACTION_PER_ACCOUNT_LIMIT = ENV.fetch('EMOJI_REACTION_PER_ACCOUNT_LIMIT', 3)
|
||||
EMOJI_REACTION_PER_ACCOUNT_LIMIT = ENV.fetch('EMOJI_REACTION_PER_ACCOUNT_LIMIT', 3).to_i
|
||||
|
||||
update_index('statuses', :status)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue