diff src/lib/Post.luan @ 46:289718f121e4

use bbcode editor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Nov 2022 18:43:38 -0700
parents 298c71e0c854
children 7ce54f6d93f2
line wrap: on
line diff
--- a/src/lib/Post.luan	Sun Nov 13 22:07:18 2022 -0700
+++ b/src/lib/Post.luan	Mon Nov 14 18:43:38 2022 -0700
@@ -143,6 +143,7 @@
 			author_name = author.name
 			is_root = true
 		}
+		post.root_id = -1
 		post.save()
 		post.root_id = post.id or error()
 		post.save()