From 7e364469ade21ed284ec147505951dfe5808582f Mon Sep 17 00:00:00 2001 From: Alexander Harding <2166114+aeharding@users.noreply.github.com> Date: Mon, 12 Aug 2024 22:47:31 -0500 Subject: [PATCH 1/2] Fix error message on lemm.ee image upload (#1586) --- src/services/lemmy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/lemmy.ts b/src/services/lemmy.ts index 98ed8c9b86..65ed6e202b 100644 --- a/src/services/lemmy.ts +++ b/src/services/lemmy.ts @@ -50,7 +50,9 @@ export async function _uploadImage(client: LemmyHttp, image: File) { image: compressedImageIfNeeded as File, }); - if (!response.url) throw new Error(response.msg); + // lemm.ee uses response.message for error messages (e.g. account too new) + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (!response.url) throw new Error(response.msg ?? (response as any).message); return response; } From 6556c0126aa25993a3718d055214fea9b3e21093 Mon Sep 17 00:00:00 2001 From: Alexander Harding <2166114+aeharding@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:16:12 -0500 Subject: [PATCH 2/2] Release 2.17.0 --- android/app/build.gradle | 4 ++-- ios/App/App/Info.plist | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index c23c413a09..9f3d8129d3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "app.vger.voyager" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 259 - versionName "2.16.0" + versionCode 260 + versionName "2.17.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 4a30bf92d3..5aad4b9235 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.16.0 + 2.17.0 CFBundleURLTypes @@ -32,7 +32,7 @@ CFBundleVersion - 259 + 260 ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/package.json b/package.json index e3e49c088e..f2e0b5e92f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "voyager", "description": "A progressive webapp Lemmy client", "private": true, - "version": "2.16.0", + "version": "2.17.0", "type": "module", "packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e", "scripts": {