From aeaddf722bf42cc7140f07e36964dcd447a0a1e0 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 30 Aug 2024 18:42:41 -0400 Subject: [PATCH] - Fixes caching bug of NIP-96 servers - Allow NIP-96 setups with relative URLs - Displays error messages if the server has sent in the body - Adds a test case for both --- .idea/inspectionProfiles/Project_Default.xml | 24 ++++++++++++ .../amethyst/ImageUploadTesting.kt | 6 +++ .../amethyst/service/Nip96MediaServers.kt | 39 +++++++++++++++++-- .../amethyst/service/Nip96Uploader.kt | 20 +++++++++- .../amethyst/ui/actions/NewPostView.kt | 14 ++++++- .../amethyst/ui/components/TextSpinner.kt | 2 +- .../amethyst/service/Nip96Test.kt | 32 ++++++++++++++- 7 files changed, 129 insertions(+), 8 deletions(-) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 44ca2d9b0..b67486ec8 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,30 @@