mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:49:16 +02:00
Use proper renderers for activity pub / webfinger
This commit is contained in:
parent
1ec705ba3f
commit
cde8732dfa
3 changed files with 14 additions and 4 deletions
9
api/funkwhale_api/federation/renderers.py
Normal file
9
api/funkwhale_api/federation/renderers.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from rest_framework.renderers import JSONRenderer
|
||||
|
||||
|
||||
class ActivityPubRenderer(JSONRenderer):
|
||||
media_type = 'application/activity+json'
|
||||
|
||||
|
||||
class WebfingerRenderer(JSONRenderer):
|
||||
media_type = 'application/jrd+json'
|
Loading…
Add table
Add a link
Reference in a new issue