mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 00:49:16 +02:00
Ensure unicity on actor username and domain
This commit is contained in:
parent
168c4e7d53
commit
2f6d3ae180
2 changed files with 20 additions and 0 deletions
|
@ -32,6 +32,9 @@ class Actor(models.Model):
|
|||
default=timezone.now)
|
||||
manually_approves_followers = models.NullBooleanField(default=None)
|
||||
|
||||
class Meta:
|
||||
unique_together = ['domain', 'preferred_username']
|
||||
|
||||
@property
|
||||
def webfinger_subject(self):
|
||||
return '{}@{}'.format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue