mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:19:24 +02:00
Resolve "Hide an artist in the UI"
This commit is contained in:
parent
d4d4e60e39
commit
bdf83bd8ff
50 changed files with 1051 additions and 49 deletions
|
@ -7,7 +7,7 @@ from funkwhale_api.activity import record
|
|||
from funkwhale_api.common import fields, permissions
|
||||
from funkwhale_api.music.models import Track
|
||||
from funkwhale_api.music import utils as music_utils
|
||||
from . import models, serializers
|
||||
from . import filters, models, serializers
|
||||
|
||||
|
||||
class ListeningViewSet(
|
||||
|
@ -25,6 +25,7 @@ class ListeningViewSet(
|
|||
IsAuthenticatedOrReadOnly,
|
||||
]
|
||||
owner_checks = ["write"]
|
||||
filterset_class = filters.ListeningFilter
|
||||
|
||||
def get_serializer_class(self):
|
||||
if self.request.method.lower() in ["head", "get", "options"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue