bowler_pub has a new view to produce statuses, though

it's only a stub for now.
status-serialisers
Marnanel Thurman 2020-07-17 18:37:31 +01:00
rodzic 550b56d537
commit 148e6c8aba
3 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -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()),
]

Wyświetl plik

@ -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',
]

Wyświetl plik

@ -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