2
0

Add support for numeric-based URIs for local accounts (#32724)

This commit is contained in:
Claire
2025-09-29 14:05:48 +02:00
committed by GitHub
parent 4d7c208da3
commit 150f0fcba5
20 changed files with 324 additions and 52 deletions

View File

@@ -18,7 +18,11 @@ module AccountOwnedConcern
end
def set_account
@account = Account.find_local!(username_param)
@account = username_param.present? ? Account.find_local!(username_param) : Account.local.find(account_id_param)
end
def account_id_param
params[:account_id]
end
def username_param