mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 15:59:18 +02:00
system_conf property on Actor instances
This commit is contained in:
parent
a81c92dbf5
commit
168c4e7d53
2 changed files with 22 additions and 0 deletions
|
@ -65,3 +65,9 @@ class Actor(models.Model):
|
|||
settings.FEDERATION_HOSTNAME == self.domain,
|
||||
self.preferred_username in actors.SYSTEM_ACTORS
|
||||
])
|
||||
|
||||
@property
|
||||
def system_conf(self):
|
||||
from . import actors
|
||||
if self.is_system:
|
||||
return actors.SYSTEM_ACTORS[self.preferred_username]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue