binwiederhier / ntfy-android

Android app for ntfy.sh
Apache License 2.0
539 stars 112 forks source link

[Bug] Attachment Download Link Incorrect #93

Closed royaltongue closed 1 month ago

royaltongue commented 1 month ago

My ntfy server is at https://ntfy.tld.me, which I have set up and working properly for text-only notifications.

However, when I try to send an attachment, it seems that it tries to download it from https://ntfy.tld.com, note the .com and not .me

When I copy the download link, this is what it gives me: https://ntfy.tld.com/file/mVFgNlShUIwo.jpg

And here's a picture showing the little toast notification as well: Screenshot_20241015_033038_ntfy

wunter8 commented 1 month ago

Per https://github.com/binwiederhier/ntfy-android/issues/1, all issues are supposed to be opened in https://github.com/binwiederhier/ntfy.

But this should be a quick fix. Attachment URLs are generated using the base-url setting. I'm guessing you put ".com" in that

royaltongue commented 1 month ago

Oh sorry, I didn't see that first issue there. Maybe it would help to pin it to the top of the issues page?

Anyway, that was the problem, so thanks!