🐛 Bug fixes on post editor

This commit is contained in:
LittleSheep 2025-03-10 21:02:18 +08:00
parent 9d4ce6ca8c
commit 813679b161
2 changed files with 5 additions and 7 deletions

View File

@ -15,12 +15,10 @@ body:json {
"client_id": "{{third_client_id}}",
"client_secret":"{{third_client_tk}}",
"type": "general",
"subject": "新年快乐!",
"subtitle": "一条来自 Solar Network 团队的信息",
"content": "今天是农历正月初一,小羊祝您新年快乐 🎉",
"metadata": {
"image": "D2EDbcrsTugs3xk5"
},
"subject": "关于迁移服务器完成的提示",
"subtitle": "一条来自 Solar Network 团队的运营信息",
"content": "我们已经将所有用户数据迁移到新版服务器,刚刚发布新的 DNS因为部分 DNS 缓存的影响。可能更改不会生效,可以使用 nslookup / ping 检查解析地址是否未 8. 开头,您可以主动刷新 DNS。谢谢",
"metadata": {},
"priority": 10
}
}

View File

@ -164,7 +164,7 @@ class _PostEditorScreenState extends State<PostEditorScreen>
});
hotKeyManager.register(_saveDraftHotKey, keyDownHandler: (_) async {
if (mounted) {
_writeController.sendPost(context);
_writeController.sendPost(context, saveAsDraft: true);
}
});
}