From 0851fbd1ec09b142608667bf90ee806e59cafb28 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 17 Nov 2022 18:52:00 -0700 Subject: Add search and better notifications --- takahe/urls.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'takahe') diff --git a/takahe/urls.py b/takahe/urls.py index 5f5d5c5..c2d9d6b 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -5,7 +5,7 @@ from django.contrib import admin as djadmin from django.urls import path, re_path from django.views.static import serve -from activities.views import posts, timelines +from activities.views import posts, search, timelines from core import views as core from stator import views as stator from users.views import activitypub, admin, auth, identity, settings @@ -14,9 +14,10 @@ urlpatterns = [ path("", core.homepage), path("manifest.json", core.AppManifest.as_view()), # Activity views - path("notifications/", timelines.Notifications.as_view()), - path("local/", timelines.Local.as_view()), - path("federated/", timelines.Federated.as_view()), + path("notifications/", timelines.Notifications.as_view(), name="notifications"), + path("local/", timelines.Local.as_view(), name="local"), + path("federated/", timelines.Federated.as_view(), name="federated"), + path("search/", search.Search.as_view(), name="search"), path( "settings/", settings.SettingsRoot.as_view(), @@ -76,7 +77,7 @@ urlpatterns = [ path("@/actor/inbox/", activitypub.Inbox.as_view()), path("@/action/", identity.ActionIdentity.as_view()), # Posts - path("compose/", posts.Compose.as_view()), + path("compose/", posts.Compose.as_view(), name="compose"), path("@/posts//", posts.Individual.as_view()), path("@/posts//like/", posts.Like.as_view()), path("@/posts//unlike/", posts.Like.as_view(undo=True)), -- cgit v1.2.3