We are now able to receive a toot and react to it

This commit is contained in:
Eliot Berriot 2018-04-01 22:11:46 +02:00
parent 6fbf8fa44c
commit 3cf1a17087
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
12 changed files with 398 additions and 48 deletions

View file

@ -30,7 +30,8 @@ def clean_acct(acct_string):
raise forms.ValidationError('Invalid format')
if hostname != settings.FEDERATION_HOSTNAME:
raise forms.ValidationError('Invalid hostname')
raise forms.ValidationError(
'Invalid hostname {}'.format(hostname))
if username not in actors.SYSTEM_ACTORS:
raise forms.ValidationError('Invalid username')