kopia lustrzana https://gitlab.com/marnanel/chapeau
bowler_pub has a new view to produce statuses, though
it's only a stub for now.status-serialisers
rodzic
550b56d537
commit
148e6c8aba
|
@ -18,6 +18,7 @@ urlpatterns = [
|
|||
path('users/<str:username>/outbox', bowler_pub_views.OutboxView.as_view()),
|
||||
path('users/<str:username>/followers', bowler_pub_views.FollowersView.as_view()),
|
||||
path('users/<str:username>/following', bowler_pub_views.FollowingView.as_view()),
|
||||
path('users/<str:username>/<int:status>', bowler_pub_views.StatusView.as_view()),
|
||||
path('sharedInbox', bowler_pub_views.InboxView.as_view()),
|
||||
]
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ from .activitypub import \
|
|||
AllUsersView, \
|
||||
InboxView, OutboxView, \
|
||||
CollectionView
|
||||
from .status import \
|
||||
StatusView
|
||||
|
||||
__all__ = [
|
||||
'FollowersView', 'FollowingView',
|
||||
|
@ -11,4 +13,5 @@ __all__ = [
|
|||
'AllUsersView',
|
||||
'InboxView', 'OutboxView',
|
||||
'CollectionView',
|
||||
'StatusView',
|
||||
]
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# Part of kepi.
|
||||
# Copyright (c) 2018-2020 Marnanel Thurman.
|
||||
# Licensed under the GNU Public License v2.
|
||||
|
||||
import django.views
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(name='kepi')
|
||||
|
||||
class StatusView(django.views.View):
|
||||
pass # TODO
|
Ładowanie…
Reference in New Issue