diff src/new_post.js.luan @ 56:7ce54f6d93f2

add change name
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 28 Nov 2022 22:00:43 -0700
parents 9f8ebc757814
children
line wrap: on
line diff
--- a/src/new_post.js.luan	Mon Nov 28 20:33:47 2022 -0700
+++ b/src/new_post.js.luan	Mon Nov 28 22:00:43 2022 -0700
@@ -32,7 +32,7 @@
 	local post = Post.new{
 		root_id = to_number(root_id) or error()
 		content = text
-		author_name = user.name
+		author_id = user.id
 	}
 	Db.run_in_transaction( function()
 		post.save()