comparison 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
comparison
equal deleted inserted replaced
45:2d4f00755092 46:289718f121e4
141 subject = subject or error() 141 subject = subject or error()
142 content = content 142 content = content
143 author_name = author.name 143 author_name = author.name
144 is_root = true 144 is_root = true
145 } 145 }
146 post.root_id = -1
146 post.save() 147 post.save()
147 post.root_id = post.id or error() 148 post.root_id = post.id or error()
148 post.save() 149 post.save()
149 return post 150 return post
150 end ) 151 end )