🐛 Fix attachments can't be zoom

This commit is contained in:
2025-04-02 00:31:00 +08:00
parent a75083d916
commit cf34a285b4
8 changed files with 257 additions and 212 deletions

View File

@ -249,8 +249,11 @@ class SnNetworkProvider {
return null;
}
String getAttachmentUrl(String ky) {
String getAttachmentUrl(String ky, {bool preview = true}) {
if (ky.startsWith("http")) return ky;
if (!preview) {
return '${client.options.baseUrl}/cgi/uc/attachments/$ky?preview=false';
}
return '${client.options.baseUrl}/cgi/uc/attachments/$ky';
}