mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:49:24 +02:00
Added remote library scanning logic end endpoint
This commit is contained in:
parent
836e813955
commit
097707dec4
8 changed files with 243 additions and 6 deletions
|
@ -36,7 +36,7 @@ def clean_acct(acct_string, ensure_local=True):
|
|||
raise forms.ValidationError(
|
||||
'Invalid hostname {}'.format(hostname))
|
||||
|
||||
if username not in actors.SYSTEM_ACTORS:
|
||||
if ensure_local and username not in actors.SYSTEM_ACTORS:
|
||||
raise forms.ValidationError('Invalid username')
|
||||
|
||||
return username, hostname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue