mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
fix: duplicated slash in custom instance's share url
This commit is contained in:
parent
a2263de3ff
commit
8ddd52d96f
@ -129,7 +129,7 @@ class ShareDialog : DialogFragment() {
|
||||
binding.piped.isChecked -> PIPED_FRONTEND_URL
|
||||
binding.youtube.isChecked -> YOUTUBE_FRONTEND_URL
|
||||
// only available for custom instances
|
||||
else -> customInstanceUrl!!.toString()
|
||||
else -> customInstanceUrl!!.toString().trimEnd('/')
|
||||
}
|
||||
var url = when {
|
||||
shareObjectType == ShareObjectType.VIDEO && host == YOUTUBE_FRONTEND_URL -> "$YOUTUBE_SHORT_URL/$id"
|
||||
|
Loading…
Reference in New Issue
Block a user