Merge pull request #1865 from bookwyrm-social/unread-status-translation

Calculate and translate unread status counts in view
This commit is contained in:
Mouse Reeve
2022-01-27 18:47:35 -08:00
committed by GitHub
8 changed files with 75 additions and 59 deletions

View File

@ -47,7 +47,9 @@ urlpatterns = [
re_path(r"^ostatus_subscribe/?$", views.ostatus_follow_request),
# polling updates
re_path("^api/updates/notifications/?$", views.get_notification_count),
re_path("^api/updates/stream/(?P<stream>[a-z]+)/?$", views.get_unread_status_count),
re_path(
"^api/updates/stream/(?P<stream>[a-z]+)/?$", views.get_unread_status_string
),
# authentication
re_path(r"^login/?$", views.Login.as_view(), name="login"),
re_path(r"^login/(?P<confirmed>confirmed)/?$", views.Login.as_view(), name="login"),