opt check dyn

Closes #996

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-12 13:45:42 +08:00
parent 1826b6a059
commit e251eaf811

View File

@@ -737,10 +737,12 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
SmartDialog.showToast('发布成功');
var id = result['data']?['dyn_id'];
RequestUtils.insertCreatedDyn(id);
RequestUtils.checkCreatedDyn(
id: id,
dynText: editController.rawText,
);
if (_replyOption.value != ReplyOptionType.close) {
RequestUtils.checkCreatedDyn(
id: id,
dynText: editController.rawText,
);
}
} else {
SmartDialog.showToast(result['msg']);
if (kDebugMode) debugPrint('failed to publish: ${result['msg']}');