mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
issues: 功能优化和体验优化 (#972)
* pref: 优化小屏幕下 cherry-markdown.css 样式 * fix: 修复 markdown 上传图片功能没有回显链接问题 * fix: #853 修复文章被删除后可以从缓存读取 * feat: #834 增加文章私有状态, 文章分类下不展示私有文章
This commit is contained in:
@@ -128,7 +128,7 @@ func (c *BlogController) ManageList() {
|
||||
|
||||
pageIndex, _ := c.GetInt("page", 1)
|
||||
|
||||
blogList, totalCount, err := models.NewBlog().FindToPager(pageIndex, conf.PageSize, c.Member.MemberId, "")
|
||||
blogList, totalCount, err := models.NewBlog().FindToPager(pageIndex, conf.PageSize, c.Member.MemberId, "all")
|
||||
|
||||
if err != nil {
|
||||
c.ShowErrorPage(500, err.Error())
|
||||
@@ -168,7 +168,7 @@ func (c *BlogController) ManageSetting() {
|
||||
if strings.Count(blogExcerpt, "") > 500 {
|
||||
c.JsonResult(6008, i18n.Tr(c.Lang, "message.blog_digest_tips"))
|
||||
}
|
||||
if blogStatus != "public" && blogStatus != "password" && blogStatus != "draft" {
|
||||
if blogStatus != "private" && blogStatus != "public" && blogStatus != "password" && blogStatus != "draft" {
|
||||
blogStatus = "public"
|
||||
}
|
||||
if blogStatus == "password" && blogPassword == "" {
|
||||
|
||||
Reference in New Issue
Block a user