mod: insert dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-18 22:03:50 +08:00
parent 6bc33795a3
commit 3f5aa03056
3 changed files with 47 additions and 47 deletions

View File

@@ -386,13 +386,10 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
Get.back();
SmartDialog.showToast('转发成功');
widget.callback?.call();
if (GStorage.enableCreateDynAntifraud) {
try {
Utils.checkCreatedDyn(result['data']['dyn_id'], editController.text);
} catch (e) {
SmartDialog.showToast(e.toString());
}
}
Future.wait([
Utils.insertCreatedDyn(result),
Utils.checkCreatedDyn(result, editController.text)
]);
} else {
SmartDialog.showToast(result['msg']);
}