• @guqing guqing opened pull request #6390 in halo-dev/halo

    What type of PR is this?

    /kind feature
    /area core

    What this PR does / why we need it:

    本次 PR 为本地附件存储策略增加了对上传单文件大小和文件类型限制的功能,具体包括:

    1. 单文件大小限制:
      实现了对单个文件上传大小的验证功能,确保上传文件不超过设定的最大值。
    2. 文件类型限制:
      添加了文件类型限制功能,使用 Apache Tika 读取上传文件的 magic numbers 得到文件 mime type 并根据用户配置来决定是否允许上传

    Which issue(s) this PR fixes:

    Fixes #6385

    Does this PR introduce a user-facing change?

    为本地附件存储策略增加了对上传单文件大小和文件类型限制的功能
    
    0 0
  • @guqing guqing created branch feature/6385 in guqing/halo

    guqing/halo

    ✍ 一款优秀的开源博客发布应用。

    0 0
  • @guqing guqing commented on issue #6385 in halo-dev/halo

    /assign

    0 0
  • @guqing guqing commented on issue #6255 in halo-dev/halo

    /triage needs-information
    /remove-kind improvement

    0 0
  • @guqing guqing commented on pull request #6348 in halo-dev/halo

    至于标题我已经说了可以通过关键词来代替,主要是关键词,如果坚持要 title,那我就妥协,不想在针对这个问题进行讨论了

    0 0
  • @guqing guqing commented on pull request #6348 in halo-dev/halo

    我的观点:生成摘要的 Context 信息直接把 Post 或者 SinglePage 的完整数据及其内容都提供给扩展点。具体如何使用由扩展点实现者自行决定,我们在设计扩展点的时候应当尽可能提供更多的灵活性。

    摘要生成这个扩展点我认为应该是个通用的东西,不可能为了一个摘要生成要单独给文章提供一个又给自定义页面提供一个,回头又要给文档提供一个,一个摘要生成而已要多余的信息我认为是没有用的只是为了帮助页面提供一个 description,context 本身需要提供的是内容和可以提供摘要生成参考的关键词以及一些其他的配置比如长度,后续可能会考虑添加忽略停止词保留标点符号,输出格式,是否包含原文链接等参数留给调用者传递。

    0 0
  • @guqing guqing commented on issue #6356 in halo-dev/halo

    你好,非必填的都取消了,点击测试和用户哪里放送邮箱都是不发正常发送

    参考 https://open.work.weixin.qq.com/help2/pc/19886?person_id=1&subtype=1&id=28&no=1000585

    0 0
  • @guqing guqing created a review on pull request #388 in halo-dev/docs

    /approve

    0 0
  • @guqing guqing pushed to feature/excerpt-ext-point in guqing/halo

    Below is the list of commits:

    0 0
  • @guqing guqing pushed to feature/excerpt-ext-point in guqing/halo

    Below is the list of commits:

    0 0