feat: support replies

This commit is contained in:
Stevan Freeborn
2023-09-14 21:47:40 -05:00
parent 0dc2934e05
commit 820ba6b1e8
14 changed files with 344 additions and 97 deletions
+1 -2
View File
@@ -45,8 +45,7 @@ export default function EditPostPage({ params }: { params: { id: string } }) {
case 'CANNOT_POST_ON_BEHALF_OF_ANOTHER_USER':
throw Error('Unable to update post');
default:
'use server';
router.push('/');
router.push(`/posts/${post?._id}`);
return;
}
}