mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 03:39:16 +02:00
Resolve "Per-user libraries" (use !368 instead)
This commit is contained in:
parent
b0ca181016
commit
2ea21994ee
144 changed files with 6749 additions and 5347 deletions
|
@ -58,3 +58,13 @@ def get_audio_file_data(f):
|
|||
d["length"] = data.info.length
|
||||
|
||||
return d
|
||||
|
||||
|
||||
def get_actor_from_request(request):
|
||||
actor = None
|
||||
if hasattr(request, "actor"):
|
||||
actor = request.actor
|
||||
elif request.user.is_authenticated:
|
||||
actor = request.user.actor
|
||||
|
||||
return actor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue