mirror of
https://github.com/stoatchat/for-android.git
synced 2026-07-18 16:34:39 -04:00
fix: invalid attachment URLs being generated
This commit is contained in:
@@ -39,7 +39,7 @@ fun viewUrlInBrowser(ctx: android.content.Context, url: String) {
|
||||
}
|
||||
|
||||
fun viewAttachmentInBrowser(ctx: android.content.Context, attachment: AutumnResource) {
|
||||
val url = REVOLT_FILES + attachment.id + "/" + attachment.filename
|
||||
val url = "$REVOLT_FILES/attachments/${attachment.id}/${attachment.filename}"
|
||||
viewUrlInBrowser(ctx, url)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user