TRCYX a8cec5a42f fix(blog): fix incorrect blog links from writing page (#38)
When a blogs was saved, only links of form "/blog/id/write" was
returned, ignoring username. Under a subdomain
("user.blog.site/blog/id/write") this is fine, but it does not work if
a subdomain is not used ("site/blog/id/write"). `HTML::blog_url` should
be called to return the links.

Also, DB::insert_id is called before actually inserting the blogs to get
the new blog's id. This sometimes return a 0, especially when the user
has just deleted a blog. DB::insert_id should be called after the
insert instead.
2019-04-26 00:07:47 +08:00
2018-09-20 17:21:40 +08:00
2018-09-20 17:21:40 +08:00
2018-09-20 17:38:09 +08:00

Universal OJ

这是一份民间的UOJ版本我们希望它比官方版本更易用。

部署文档在universaloj.github.io

目前已经支持的特性:

  • 子目录博客(感谢roastduck的贡献)
  • zip传题 (感谢AD1024的贡献)

希望对您有帮助。

Description
Online Judge System for Shijiazhuang No.2 Middle School, based on Universal Online Judge.
https://sjzezoj.com Readme AGPL-3.0 43 MiB
Languages
JavaScript 93.4%
PHP 4.2%
C++ 1.3%
TypeScript 0.3%
CSS 0.3%
Other 0.4%