diff --git a/web/app/controllers/subdomain/blog/blog_write.php b/web/app/controllers/subdomain/blog/blog_write.php index d0478a5..85bb219 100644 --- a/web/app/controllers/subdomain/blog/blog_write.php +++ b/web/app/controllers/subdomain/blog/blog_write.php @@ -60,6 +60,7 @@ } else { insertBlog($data); $blog = array('id' => DB::insert_id(), 'tags' => array()); + $ret['blog_id'] = $blog['id']; $ret['blog_write_url'] = HTML::blog_url(UOJContext::user()['username'], "/post/{$blog['id']}/write"); $ret['blog_url'] = HTML::blog_url(UOJContext::user()['username'], "/post/{$blog['id']}"); } @@ -77,6 +78,18 @@