Replying to Avatar Anthony Accioly

Hey nostr:nprofile1qqstd9s0e0ruq3fkhjv02hzgm8ulae2es0nlwc7py3zn4aeg47prz8gpr3mhxue69uhkummnw3ezucnfw33k76twv4ezuum0vd5kzmqprpmhxue69uhhyetvv9ujuumpw3kxzmn5d9eju6t0qyv8wumn8ghj7urjv4kkjatd9ec8y6tdv9kzumn9ws82285e, nice to meet you. If you could point me towards the source code or give me a hand here, I’d appreciate it. Apparently (though not confirmed), Primal's Blossom client on iOS isn't following redirects on Blossom endpoints like /media and /upload. This is breaking both mirroring workflows and the upcoming CDN/Public Object Storage functionality (see this comment: https://github.com/bitvora/haven/issues/78#issuecomment-3154719544 by nostr:nprofile1qqsqxcftp6awpmydxqp3c3qt5zrllx73v2tzmla6fdhqy8ky4lt3y9sprfmhxue69uhkummnw3ezuum4v3hkxctjd3hhxtnrdakszyrhwden5te0dehhxarj9ekxzmnytnk6x3). Both functionalities work fine on Primal Web.

Hi, our blossom code is part of our kotlin multiplatform so you need to ask nostr:nprofile1qqstzzcdte06a8rvfz5vwlm7t2759fu7jjqwykjqjsz36jayec2y26cpzemhxue69uhhyetvv9ujuurjd9kkzmpwdejhgqg5waehxw309aex2mrp0yhxgctdw4eju6t0syq9dp or look in primal android

Reply to this note

Please Login to reply.

Discussion

Hey nostr:nprofile1qydhwumn8ghj76rpwejkutnpvd3kjmmv0yh8xmmrd9skctcpypmhxue69uhksctkv4hzuctrvd5k7mre9eek7cmfv9kz76twvfhhsqpqa6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq2t6aua, you are looking for `PrimalUploadService.kt`, can be found in primal-android-app repo under `networking-upload` module which is in charge of blossom uploading.

Mirroring with Haven did not work because Haven does not support BUD-04 (which we're using for mirroring). Not sure if anything has changed recently. Check this thread for more details.

nostr:nevent1qvzqqqqqqypzqwlsccluhy6xxsr6l9a9uhhxf75g85g8a709tprjcn4e42h053vaqqsdazmakhmwyjdqquwe6j0yy7vytj7a55rzm9da9kyrxj8j0lafwks6vkp75

Thanks, both. That was a quick response šŸ™‚. Just to give a bit more context to the GitHub issue: things have progressed on Khatru and Haven. The /mirror endpoint is already in place on Khatru, and for now, we are redirecting /media to /upload. It all seems to be working fine on Primal Web.

I believe the problem on Android is a known issue due to Khatru not returning a `Content-Type: application/json` header, which is likely fixed on Khatru master (or at least, I tested the fix some time ago and it was working). I'll cut a new test release of Haven tomorrow and see if I can get it working with Android. Hopefully, this will also fix things on Primal iOS. If I need anything on the Primal side, I'll reach out for sure.