Commit Graph

9 Commits

Author SHA1 Message Date
Teror Fox
00b66bef7e feat(core): 实现文章的发布/取消发布功能 (#2443)
* feat(migration): add isPublished field to posts and notes collections

* feat(note, post): add publish status management for notes and posts

* build(tsup): 添加 import.meta.url 支持

- 在 tsup 配置中添加 platform: 'node' 设置
- 注入 import.meta.url 兼容层,以支持不同模块格式

* build(core): 修改 mx-server 启动脚本路径

* feat(migration): 添加 v8.4.0 版本迁移脚本至history

* feat(core): 修复未认证用户可查看未发布内容的安全问题

- 在 Note 和 Post 模块中添加了对未认证用户的访问限制

* fix(core): 回滚 mx-server 启动脚本路径

* feat(migration): 添加 v8.4.0 数据库脚本以更新 notes 集合字段

* feat(migration): 更新 v8.4.0 修复脚本以重命名 hide 字段并互换其值

* feat(note): 替换 hide 字段为 isPublished,更新相关查询和条件

* feat(note): 将 hide 字段替换为 isPublished,更新相关数据模型

* feat(migration): 添加 v8.4.0 fix2修复脚本以更新 posts 集合中的 isPublished 字段为true
2025-07-03 16:06:06 +08:00
Innei
817b81a983 chore: format
Signed-off-by: Innei <i@innei.in>
2024-08-16 12:30:06 +08:00
Innei
e5ac04a650 chore: lint with sxzz config
Signed-off-by: Innei <i@innei.in>
2024-04-29 16:00:20 +08:00
Innei
5a2b2debc4 fix: add hide for note list api
Signed-off-by: Innei <i@innei.in>
2024-04-12 00:35:01 +08:00
Innei
6745194197 refactor!: rename note model field and fix exposure of hidden data
Signed-off-by: Innei <i@innei.in>
2024-02-15 22:29:51 +08:00
Innei
dd9caa0a12 chore: remove deprecated routes 2023-10-21 15:32:23 +08:00
Innei
b22666694a chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-10 16:36:14 +08:00
Innei
1073c67646 feat: add liked for post and note model
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-22 18:07:40 +08:00
Innei
a281f45ab4 feat: move api-client as core's monorepo
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-20 21:26:21 +08:00