mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 13:49:17 +02:00
Logic to refetch remote entities
This commit is contained in:
parent
63b1007596
commit
cdc617be27
23 changed files with 632 additions and 9 deletions
|
@ -144,3 +144,19 @@ class InboxItemActionSerializer(common_serializers.ActionSerializer):
|
|||
|
||||
def handle_read(self, objects):
|
||||
return objects.update(is_read=True)
|
||||
|
||||
|
||||
class FetchSerializer(serializers.ModelSerializer):
|
||||
actor = federation_serializers.APIActorSerializer()
|
||||
|
||||
class Meta:
|
||||
model = models.Fetch
|
||||
fields = [
|
||||
"id",
|
||||
"url",
|
||||
"actor",
|
||||
"status",
|
||||
"detail",
|
||||
"creation_date",
|
||||
"fetch_date",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue