Users#info endpoint uses username instead of ID (#180)

This commit is contained in:
Justin Edmund 2025-02-13 02:43:16 -08:00 committed by GitHub
parent a042847aab
commit 60f153a169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ module Api
class ForbiddenError < StandardError; end class ForbiddenError < StandardError; end
before_action :set, except: %w[create check_email check_username] before_action :set, except: %w[create check_email check_username]
before_action :set_by_id, only: %w[info update] before_action :set_by_id, only: %w[update]
MAX_CHARACTERS = 5 MAX_CHARACTERS = 5
MAX_SUMMONS = 8 MAX_SUMMONS = 8