Create a ActivitypubResponse class and use it in the views

This improves compatibility with other fediverse software by using the
expected content type for any api calls.
This commit is contained in:
Renato "Lond" Cerqueira
2020-12-30 11:12:04 +01:00
parent 26c0880fe4
commit 44a8184f72
3 changed files with 30 additions and 18 deletions

View File

@ -11,6 +11,7 @@ from .note import Tombstone
from .interaction import Boost, Like
from .ordered_collection import OrderedCollection, OrderedCollectionPage
from .person import Person, PublicKey
from .response import ActivitypubResponse
from .book import Edition, Work, Author
from .verbs import Create, Delete, Undo, Update
from .verbs import Follow, Accept, Reject