From 6f2f28a3a752cc47d9dc96bda862ed67cd75c9af Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 1 Dec 2022 18:46:49 -0700 Subject: Image attachment uploads --- takahe/urls.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'takahe/urls.py') diff --git a/takahe/urls.py b/takahe/urls.py index dc3946f..9aa67a2 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -3,7 +3,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 explore, posts, search, timelines +from activities.views import compose, explore, posts, search, timelines from core import views as core from stator import views as stator from users.views import activitypub, admin, auth, follows, identity, settings @@ -120,14 +120,19 @@ urlpatterns = [ path("@/inbox/", activitypub.Inbox.as_view()), path("@/action/", identity.ActionIdentity.as_view()), # Posts - path("compose/", posts.Compose.as_view(), name="compose"), + path("compose/", compose.Compose.as_view(), name="compose"), + path( + "compose/image_upload/", + compose.ImageUpload.as_view(), + name="compose_image_upload", + ), path("@/posts//", posts.Individual.as_view()), path("@/posts//like/", posts.Like.as_view()), path("@/posts//unlike/", posts.Like.as_view(undo=True)), path("@/posts//boost/", posts.Boost.as_view()), path("@/posts//unboost/", posts.Boost.as_view(undo=True)), path("@/posts//delete/", posts.Delete.as_view()), - path("@/posts//edit/", posts.Compose.as_view()), + path("@/posts//edit/", compose.Compose.as_view()), # Authentication path("auth/login/", auth.Login.as_view(), name="login"), path("auth/logout/", auth.Logout.as_view(), name="logout"), -- cgit v1.2.3