👽 Support use realm alias instead of id

This commit is contained in:
2024-08-19 00:14:09 +08:00
parent 49f73f5f04
commit b63db7fe76
5 changed files with 7 additions and 8 deletions

View File

@ -38,7 +38,7 @@ class _AttachmentAttrEditorDialogState
isMature: _isMature,
);
Get.find<AttachmentProvider>().clearCache(id: widget.item.id);
Get.find<AttachmentProvider>().clearCache(id: widget.item.rid);
setState(() => _isBusy = false);
return Attachment.fromJson(resp.body);

View File

@ -70,7 +70,6 @@ class _AttachmentFullScreenState extends State<AttachmentFullScreen> {
'/attachments/${widget.item.rid}',
);
print(url);
if (PlatformInfo.isWeb || PlatformInfo.isDesktop) {
await launchUrlString(url);
return;