mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 08:29:40 +02:00
See #170: channels ui (listeners)
This commit is contained in:
parent
b74517ff33
commit
95497e76ac
79 changed files with 1768 additions and 232 deletions
|
@ -876,6 +876,12 @@ class Upload(models.Model):
|
|||
def listen_url(self):
|
||||
return self.track.listen_url + "?upload={}".format(self.uuid)
|
||||
|
||||
def get_listen_url(self, to=None):
|
||||
url = self.listen_url
|
||||
if to:
|
||||
url += "&to={}".format(to)
|
||||
return url
|
||||
|
||||
@property
|
||||
def listen_url_no_download(self):
|
||||
# Not using reverse because this is slow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue